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

原文地址:https://www.cnblogs.com/-ios/p/4672772.html