is it possible to determine whether my UIView
is visible to the user or not?
My View is added as subview
several times into a Tab Bar
I you truly want to know if a view is visible to the user you would have to take into account the following:
Especially the transparent background color of views in front may pose a problem to check programmatically. The only way to be truly sure is to make a programmatic snapshot of the view to check and diff it within its frame with the snapshot of the entire screen. This won't work however for views that are not distinctive enough (e.g. fully white).
For inspiration see the method isViewVisible in the iOS Calabash-server project