[英]How to perform a segue view from custom UITableViewCell(xib) to another ViewController
[英]Animated segue from xib view to ViewController
我有一個視圖,名為thirdView.xib和“ allPicsViewController”(因此沒有Storyboard Segue)。 我的問題是,是否有可能執行動畫連續(最好是“交叉溶解”),而不是執行從底部開始的普通動畫。
這段代碼顯示了我的“ 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
,但這不是很好。 謝謝。
從上面我的評論(以幫助其他人):
剛設置
vc.modalTransitionStyle = UIModalTransitionStyle.CrossDissolve
在展示視圖控制器之前。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.