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

Popular posts from this blog

angularjs - Showing an empty as first option in select tag -

python - argument 2 to map() must support iteration -

javafx - How to wait cancellation of task after Service#cancel? -