When my app gets back to its root view controller, in the viewDidAppear:
method I need to remove all subviews.
How can I do this?
When my app gets back to its root view controller, in the viewDidAppear:
method I need to remove all subviews.
How can I do this?
In objective-C, go ahead and create a category method off of the UIView class.
In monotouch / xamarin.ios this worked for me:
If you're using Swift, it's as simple as:
It's similar in philosophy to the
makeObjectsPerformSelector
approach, however with a little more type safety.