In my Xcode 4.2 storyboard, i have 2 UIViewControllers, This one time and In band camp
This one time, i have a UIButton with "silly name" on itIn band camp, i have a UILabel with "label" on itConsidering that we're dealing with 2 separate classes AND we're in Xcode 4.2 using storyboards (where transition between views is setup via a segue) how can i pass "silly name" from view controller This one time to the label in view controller In band camp?"

Inside the method, check if identifier of segue matches "AwesomeSegue" - if yes, use the destinationViewControllerObject
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ([segue.identifier isEqualToString:@"AwesomeSegue"]) {
InBandCampViewController *ibcVC = [segue destinationViewController];
ibcVC.yourData = self.someStuff;
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With