您的位置:首页 > 移动开发 > IOS开发

IOS 模态视图跳转界面

2013-10-16 22:19 357 查看
跳转
- (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");}];
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: