objective c - How can I show a view controller on the first launch only in ios -


I just want to show an operator screen with three operators when the app is launched and if I have not selected an operator And I stopped the app and then when I open the app, I should only see the operator screen but I'm going to the home view controller. This is my code:

Home View Niyntrk.am

  if (! [ "" 1 "Avltostring: [[Ansyuesr default Standard standard default] object Forki: @" Avlu "]]) {[[NSUserDefaults standard standard default] set values: @" @ "Avlu" to 1 "]; [[NSUserDefaults standard Usr Difolts] synchronize]; // action here UIViewController * myController = [ "@" operator self.storyboard instantiateViewControllerWithIdentifier:]; [self. navigation controller push ViewController: myController animated: YES];} Else {//self.view.backgroundColor = [UIColor redColor];}  

could get any changes that I desired results in my code. Thanks in advance ....

this code

  [[NSUserDefaults standard user Difolts] set value: the @ "1" Liake: @ "Avlu"]; [[NSUserDefaults standard Usr Difolts] Synchronize];  

Should be transferred to the view controller in which the user selects the operator. After selecting the operator it should be done and operator need to be done before dismissing the controller.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -