跳转
- (IBAction)present:(id)sender {
NSLog(@"the button,is clicked ...");
//创建准备跳转的UIViewController
ModalViewController *modalViewController = [[ModalViewController alloc] init];
//设置跳转效果
modalViewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
//开始跳转
[self presentViewController:modalViewController animated:YES completion:^{NSLog(@"call back");}];
}
- (void)finishPage:sender
{
NSLog(@"back button click ...");
[self dismissViewControllerAnimated:YES completion:^{NSLog(@"DISMISS");}];
}