samedi 22 mars 2014

Setting transition programatically when switching view controllers in storyboard


Vote count:

0




I have a storyboard with few view controllers which I'm switching programatically. I have this IBAction which works fine, but how do I set a custom transition?



- (IBAction)goBack:(id)sender {
NSString * storyboardName = @"Main";
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle: nil];
UIViewController * vc = [storyboard instantiateViewControllerWithIdentifier:@"TestHome"];
[self presentViewController:vc animated:YES completion:nil];
}


asked 2 mins ago






Aucun commentaire:

Enregistrer un commentaire