Custom Segue in Swift

前端 未结 4 604
感动是毒
感动是毒 2020-12-15 07:41
@objc(SEPushNoAnimationSegue)
class SEPushNoAnimationSegue: UIStoryboardSegue {
    override func perform () {
      self.sourceViewController.navigationController.p         


        
4条回答
  •  我在风中等你
    2020-12-15 08:08

    Even Better:

    import UIKit
    
    class CustomSegue: UIStoryboardSegue {
        override func perform() {
            self.sourceViewController.presentViewController(self.destinationViewController as UIViewController, animated: false, completion: nil)
        }
    }
    

提交回复
热议问题