ios - How to Switch Between View Controllers -
So, right now, in my main.storyboard, I have a visual controller that we call "SB View Controller" . I added another view controller, which is called "view controller" how do I create it, when a user clicks a button, will the controller see the SB view controller? Or, is not it that I am going to do something like that?
Sorry if you can not understand it; Just tell me if you
thanks in advance.
I usually do this.
Set a button in a view controller and then control-drag it creates a blue flexible arrow and leaves it when I want to click.
then shows a small pop up menu and selection of the model Please.
Then I will create another button in the second view, which will return to the original scene. For example, the "finished" will dismiss the latter scene.
Here's the code to dismiss:
- (IBAction) done: (ID) sender {[self-rejecting ViewControllerAnimated: Yes complete: zero]; }
Then which scene will dismiss, second view.
Do you need it?
Comments
Post a Comment