PinViewController *k_View = [[PinViewController alloc] initWithNibName:@"PinViewController" bundle:nil];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:k_View];
[self presentViewController:navigationController animated:YES completion: nil];
NSString *addr = sender.titleLabel.text;
[k_View showPinView:addr];
This is my code. The new view is added programmatically, so I can’t just use the GUI to select what type of segue effect I want. I would like to use the Segue that uses the transition “Cross Disolve”, how would I go about doing that in code?
Thanks!
You don’t need any segue. just add:
Before calling presentViewController:animated:completion: and it should do the trick.
See modalTransitionStyle and modalPresentationStyle in the UIViewController reference.