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 -

c# - Json.Net Serialize String from URI -

ruby on rails - What is the best design practise to create tables from same controller using same actions -