// In a storyboard-based application, do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
// used to transfer some data to new VC
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
- (void)performSegueWithIdentifier:(NSString *)identifier sender:(id)sender
- (BOOL)shouldPerformSegueWithIdentifier:(NSString *)identifier sender:(id)sender
// Invoked immediately prior to initiating a segue. Return NO to prevent the segue from firing.
// The default implementation returns YES.
// This method is not invoked when -performSegueWithIdentifier:sender: is used.
对于一个VC,可以指定segue类型为modal时的style
123456789
/*
Defines the transition style that will be used for this view controller when it is
presented modally. Set this property on the view controller to be presented, not the presenter.
Defaults to UIModalTransitionStyleCoverVertical.
*/
@property(nonatomic,assign) UIModalTransitionStyle modalTransitionStyle NS_AVAILABLE_IOS(3_0);
@property(nonatomic,assign) UIModalPresentationStyle modalPresentationStyle NS_AVAILABLE_IOS(3_2);