Questions tagged as 'swift'

1
answer

Create custom map using corelocation

I would like to know if there is a way to insert a map made by you and not google maps. I'm trying to create an indoor location application and I have to insert a plant instead of google maps. Does anyone know that?     
asked by 16.03.2017 / 19:39
1
answer

How to pass a value from a dictionary (which is inside another dictionary) to a Label? Swift 3 [closed]

I have a database something like this: { "status": "OK", "data": [ { "id": 1, "name": "Mike", "informations": [ { "id": 474, "text": "My son", "reference": "www.google.com",...
asked by 31.01.2017 / 01:30
1
answer

'The number of view controllers provided (2) does not match the number required (1) for the requested transition'

I'm using TabBarController and I get this error:    The number of view controllers provided (2) does not match the number required (1) for the requested transition When I leave the home screen and come back to it from this error. I...
asked by 04.11.2016 / 20:09
1
answer

Hide TabBar and Show UIToolbar

In my project I have a TableView inside navigation controller (TabBar > Navigation Controller > TableView Controller) When I click the Edit button the TabBar is being hidden and displaying the Toolbar, but it is not adjusting in the...
asked by 09.08.2016 / 21:25
1
answer

Error in Facebook API Return

Here's my scenario for better understanding: I have View Home calling View View, by pushViewController . In my View Login, there is the custom Facebook button that is normally calling the facebook authorization page; But the return...
asked by 29.06.2016 / 07:33
2
answers

how to add white space between Strings

Good, I have 2 fields: First and Last name. in the exit the 2 names leave glued without space between them. Of this I thank you for the help.     
asked by 28.09.2016 / 16:21
1
answer

Swift - how to set LandscapeLeft a screen?

The app has 4 screens being that, only one should stay fixed in LandscapeLeft. The others are in Portrait .. In the General tab I have set this up. General: In Objective-C I can force this way: Solution in Objective-C:...
asked by 08.06.2016 / 16:29
1
answer

Check which TextField is calling textFieldDidBeginEditing

I have several textFields on my screen and I would like to know which one started an action. For example: func textFieldDidBeginEditing(textField: UITextField) { if textField // aqui eu não sei comparar para ver qual textField iniciou e...
asked by 11.02.2016 / 16:52
1
answer

How can I do in xCode the java code mentioned in the question?

This class on Android when enabled, I can close the app it keeps working and keep the cell screen lit like this Keep screen lit: PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); wl = pm.newWakeLock(PowerMana...
asked by 29.01.2016 / 17:22
1
answer

How to keep the user authenticated?

I'm using Alamofire to submit the authentication request like this: let user = "user" let password = "password" Alamofire.request(.GET, "https://httpbin.org/basic-auth/\(user)/\(password)") .authenticate(user: user, password: passw...
asked by 14.01.2016 / 13:57