草庐IT

SEPushNoAnimationSegue

全部标签

ios - Swift 中的自定义 Segue

@objc(SEPushNoAnimationSegue)classSEPushNoAnimationSegue:UIStoryboardSegue{overridefuncperform(){self.sourceViewController.navigationController.pushViewController(self.destinationViewController,animated:false)}}在上面的代码中,我有两个问题:1).它有一个编译错误:'UINavigationController!'没有名为“pushViewController”的成员但是在那个类

ios - Swift 中的自定义 Segue

@objc(SEPushNoAnimationSegue)classSEPushNoAnimationSegue:UIStoryboardSegue{overridefuncperform(){self.sourceViewController.navigationController.pushViewController(self.destinationViewController,animated:false)}}在上面的代码中,我有两个问题:1).它有一个编译错误:'UINavigationController!'没有名为“pushViewController”的成员但是在那个类