Questions tagged as 'xcode'

1
answer

AutoLogin without firebase SWIFT3 IOS

I would like to know how I can save the user information and do not need to log in whenever I minimize or close the app without the use of firebase.     
asked by 14.11.2017 / 15:27
1
answer

How to set maximum size of 2 textfields separately (Swift)

Next, I'm now starting with Swift and iOS programming. I have a question: how to validate 2 different textFields? For example, I managed with the code below to do the validation of 1 single field, but the problem that my application has 4 fields...
asked by 27.03.2017 / 01:30
1
answer

Force execution order Swift 3 / Xcode 8 - Threads

Hello, I'm new to swift and this week I came across a problem that is already making me pull out my hair! What happens is the following, divided in my application in several classes to leave my code more "straightened" and in this wave I decided...
asked by 07.02.2017 / 22:06
1
answer

How to enable the macBook camera in the Simulator?

I'm making an APP on xCode that uses the camera to make videos but I can not use the camera through the Simulator. Is there any way to enable the camera for the Simulator?     
asked by 04.11.2016 / 17:16
2
answers

How to call a viewcontrolller runtime

Friends I just need to open a ViewController, and I'm giving it silly, could help. Who can help .... Thanks. . LoginViewController *tela2 = [self.storyboard instantiateViewControllerWithIdentifier:@"login"]; [self presentViewController:tela2 a...
asked by 01.08.2016 / 15:38
2
answers

Picker View - Display an ImageView according to the sum of values

Hello. I'm trying to work with Picker View to display a combination of values. var pickerDataSource = [["a", "b", "c", "d"],["1","2","3","4"]]; Doubt is; how do I get results within a condition? if(row == 0) { self...
asked by 28.03.2016 / 22:55
1
answer

IOS - how do I find the screen size of the user's device?

I would like to know if there is a way to find out the size of the screen that the user is using or the model of your iPhone via Objectice-C.     
asked by 28.03.2016 / 20:01
1
answer

I can not change the rootViewController

Hello, take it easy with me because I am extremely beginner. I'm trying to change the root of an application I'm trying to do. It even worked when I commented on window!.rootViewController = centerContainer But when I do this, the m...
asked by 25.04.2016 / 00:28
1
answer

How do I run a code with the application closed or minimized?

I'm trying to run code that keeps the screen always on, it works perfectly when I'm inside the APP, but if I minimize or close it, it will not work. NOTE: I am using UIKit.framework code that keeps the screen lit: [[UIApplication sharedA...
asked by 05.02.2016 / 19:52
1
answer

IOS - How to program the navigation between ViewController in Objective-C?

I want to navigate between the ViewController of an app by clicking a button and switching from one to another for example. But I did not want to do this for the .storyboard, I want to do it directly via code. It's possible? If so, how can I do...
asked by 19.02.2016 / 19:08