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];
}

posted on 2015-07-24 10:49  yucaijiang  阅读(212)  评论(0编辑  收藏  举报

导航