For example, if the view viewController is in viewHierarchy, and I just finished loading, I want to quickly update the material. If self.view does not appear in the hierarchy, I want to postpone the update.
I suppose I can just add a boolean to indicate this, and put it in viewWillAppear and viewWillDisappear.
I can also scan windows and see if there is a UIView in the view hierarchy or not.
Is there an easier way?
source share