ios - Do all UIVIewControllers come with a UINavigationController, UISearchDisplayController, etc? -
i noticed uiviewcontroller have properties like
self.navigationcontroller self.searchdisplaycontroller
etc. confused me bit. did not define these in xib file - notice can access , use them , automatically show in view. reason having these instantiated view controllers?
what if want define , hook own via xib file?
those values nil
default. return values if view controller has been setup corresponding controller.
in other words, if view controller has not been added nav controller navigationcontroller
property returns nil
. same searchdisplaycontroller
.
Comments
Post a Comment