Is it possible to determine whether my UIView
is visible to the user or not?
My View is added as a subview
several times into a UITabBarController
.
Each instance of this view has an NSTimer
that updates the view.
However, I don't want to update a view which is not visible to the user.
Is this possible?
You can check if:
view.superview != nil
The only other thing I can think of is if your view is buried behind others and can't be seen for that reason. You may have to go through all the views that come after to see if they obscure your view.