iOS 6.0之后,
– self presentModalViewController:<#(nonnull UIViewController *)#> animated:<#(BOOL)#> 方法失效了
取而代之的是,这两个方法在没有NavatgationController 时,会用这两个方法来模态跳转:
– presentViewController:animated:completion: 弹出,出现一个新视图 可以带动画效果
– dismissViewControllerAnimated:completion:退出一个新视图 可以带动画效果
//presentModalViewController:animated:completion:使用系统自带四种动画,已失效