//模态视图(临时弹出使用)
GreenViewController *green=[[GreenViewController alloc] init];
green.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
[self presentViewController:green animated:YES completion:nil];
-(void)buttonAction:(UIButton*)sender
{ //退回模态视图
[self dismissViewControllerAnimated:YES completion:nil];
}