This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//call the segue to put the data you want to transfer | |
- (IBAction)click{ | |
[self performSegueWithIdentifier:@"PUSH_NEXT" | |
sender:[NSDictionary dictionaryWithObjectsAndKeys: | |
self.page.data,@"data",nil]]; | |
} | |
//prepareForSegue - tranfer the data to next viewController and push to the next view controller | |
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { | |
if ([[segue identifier] isEqualToString:@"PUSH_NEXT"]) { | |
NextPageViewController *vc = [segue destinationViewController]; //set destination view controller |
NewerOlder