【发布时间】:2016-02-23 19:35:21
【问题描述】:
我有一个名为thirdView.xib 和“allPicsViewController”的视图(所以没有Storyboard Segue)。我的问题是,如果可以执行动画转场(Cross Dissolve 是最好的),而不是从底部开始的普通动画。
这段代码显示了我的“allPicsViewController”并且它可以工作,但是视图从底部开始动画。
func showProfileController(){
let storyboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
let vc: UIViewController = storyboard.instantiateViewControllerWithIdentifier("allPicsViewController")
self.presentViewController(vc, animated: true, completion: nil)
print("btn tapped")
}
我也尝试设置 animated:false ,但这并不好。
谢谢。
【问题讨论】:
标签: ios xcode swift animation uistoryboardsegue