ios - How to use Storyboards with multiple segues to one view controller? -
My app will use a simple login type selcector visual controller, and with that it will branch out to different view controllers , That is, sign up, sign in, and sign in with the social network. How do I add a single destination view controller from all of these? How do I add these multiple segments?
Each view controller should have its own seq. To create, press "Ctrl" and you want to go to ViewController
- (zero) Prepare FORSegue: From the sender (UIStoryboardPopoverSegue *) Sender: (ID) Sender {If ([segue.destinationViewController IsKindOfClass: [MyDestinationVC class]]) {// doing something / example MyDestinationVC * screen = (MyDestinationVC *) segue.destinationViewController; Screen.someValue = self.sendedValue; }}
Comments
Post a Comment