Questions tagged as 'swift'

2
answers

Error connecting app with Firebase

I'm trying to connect my App to Firebase, I already followed the steps given in the site itself, in addition to seeing some videos from other authors, however I always encounter the following problem: Could not locate configuration file: 'Goog...
asked by 02.11.2017 / 20:47
2
answers

Bringing an API item to Swift

let httpStatus = response as? HTTPURLResponse if httpStatus?.statusCode == 200 { if data?.count != 0 { let respJson = try! JSONSerialization.jsonObject(with: data!, options: .allowFragments) as! NSArray if let codigo = respJson ["...
asked by 25.09.2017 / 15:59
1
answer

Login to Swift Authorization

I'm consuming data from a certain API to login, it returns me the% correct access%, and if instead returns ERROR , but I can not do move to another screen if the fields are filled correctly, follow the API code below: let postString = "usua...
asked by 18.09.2017 / 18:10
0
answers

Rest API returning Token

I need to develop an application in Swift I'm trying to consume an API to login and when I log in the application will have to send a Token , but this Token already exists in the API , would you like to know how I can handle it? Is it a...
asked by 15.09.2017 / 11:58
1
answer

swift - Send json body by alamofire

I'm on my first project in Swift, and I need to send a RequestBody to POST through Alamofire. This is an example of JSON that I need to send: { "user":{ "email":"[email protected]" } } And I have my Class User . fun...
asked by 14.09.2017 / 16:47
1
answer

TableView saving selected rows

class ViewController: UITableViewController { let dias = ["Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado","Domingo"] var selecionados = [Bool]() override func tableView(_ tableView: UITableV...
asked by 15.09.2017 / 21:53
1
answer

fatal error: unexpectedly found nil while unwrapping an Optional value

I know the problem is simple .. but I can not solve my variable Beats only appears in the second view, but a function ends up calling it in the first view, I just need to check if it's popping up, but I'm not able to do the control if @IBOutle...
asked by 16.09.2017 / 06:02
1
answer

Error clicking Button

Good morning! I'm studying the Swift language for iOS and I have the following problem. I made a test application, available in the book "Swift - Programe for iPhone and iPad" of the Code House. It is an application where I put a food and...
asked by 02.08.2017 / 14:54
2
answers

Error ObjectMapper Swift 3.2

I'm trying to upgrade my application to iOS 11, but the ObjectMapper framework is giving this error message.    Module compiled with Swift 3.1 can not be imported in Swift 3.2:   /Users/Dev/Documents/Development/Projects/TravellinkCore/Cartha...
asked by 21.08.2017 / 21:43
1
answer

Change button label with typed value [duplicate]

I have an application that when I touch the button should open the keyboard and the value that the user type need to be inserted in the button label, I do not know how to do this, someone can help, in case it would be in swift 3     
asked by 28.07.2017 / 20:06