当前位置:首页 > 操作系统 > Ios

iOS模态视图

    //模态视图(临时弹出使用)
    GreenViewController *green=[[GreenViewController alloc] init];
    green.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
    
    [self presentViewController:green animated:YES completion:nil];   

 

 

 

-(void)buttonAction:(UIButton*)sender
{   //退回模态视图
    [self dismissViewControllerAnimated:YES completion:nil];
}

原文:http://www.cnblogs.com/-ios/p/4672772.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!