@objc(SEPushNoAnimationSegue)
class SEPushNoAnimationSegue: UIStoryboardSegue {
override func perform () {
self.sourceViewController.navigationController.pushViewController(self.destinationViewController, animated:false)
}
}
In the above code, I have 2 questions:
1). it has a compile error:
'UINavigationController!' does not have a member named 'pushViewController'
But in that class, it did has a pushViewController method.
2). I have to add the annotation: @objc(SEPushNoAnimationSegue),
otherwise, in storyboard, it only recognize the random generated name, like, _tcxxxxSEPushNoAnimationSegue.
why these 2 issues happen here?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…