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

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -