首页 > 其他 > 详细

iOS 视图跳转

时间:2014-01-16 21:46:52      阅读:292      评论:0      收藏:0      [点我收藏+]
bubuko.com,布布扣
//跳转
- ( void)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" );}];
}

 
bubuko.com,布布扣

iOS 视图跳转

原文:http://www.cnblogs.com/huluo666/p/3521365.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!