Actually that should work, but it doesnt:
CALayer *myLayer = [myUIImageView layer];
CGRect visRect = [myLayer visibleRect];
I get an "invalid initializer" error, although my view is loaded definitely since in the next few lines I obtain the frame from the view and move the view around. But under no circumstances I can obtain that visibleRect that is mentioned in the documentation.
In the debugger I see an memory address for myLayer, so I guess that the first line worked.