ios - pushViewController not working in swift 3 -
i using storyboard , xib in swift 3 (ios 10 , xcode 8). , when load view controller xib, application crashing.
here code, using load view controller on button action:
let serverviewcontroller = serverviewcontroller(nibname: "serverviewcontroller", bundle: nil) self.navigationcontroller?.pushviewcontroller(serverviewcontroller, animated: true)
if serverviewcontroller
nibname correct, problem trying push navigation controller. mean serverviewcontroller
should uinavigationcontroller
subclass in case, can't push navigation controller.
Comments
Post a Comment