ios - How do I add didSet to view property of UIViewController? -
in uiviewcontroller
, add code view property set:
var view:uiview! { didset { //(view myview).delegate ... } }
obviously, doesn't work because cannot override variable of super class.
is there workaround achieve want?
the view set once, , @ time viewdidload
called. go flow , override viewdidload
, set delegate there.
Comments
Post a Comment