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

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

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

php - Cloud9 cloud IDE and CakePHP -