I know I can do a modal segue in code like this:
[presentModalViewController:my_view, animated:YES];
but how do I specify a fade in or horizontal/vertical flip programmatically?
Thanks, Pachun
set this property to your viewController: modalTransitionStyle
UIModalTransitionStyle from apple doc
typedef enum { UIModalTransitionStyleCoverVertical = 0,
UIModalTransitionStyleFlipHorizontal,
UIModalTransitionStyleCrossDissolve,
UIModalTransitionStylePartialCurl,} UIModalTransitionStyle;
来源:https://stackoverflow.com/questions/10901006/ios-programmatic-modal-segue-with-animation-such-as-flip