I am having trouble doing this:
CALayer *myLayer = myUIImageView.layer; //works, no error from compiler
CGRect visRect = myLayer.visibleRect; //fat error, see below
The Error I get is:
error: request for member 'visibleRect' in something not a structure or union
but the documentation says:
visibleRect Returns the visible region of the receiver, in its own coordinate space. (read-only) @property(readonly) CGRect visibleRect
I have included QuartzCore.framework, CoreGraphics.framework, UIKit.framework, Foundation.framework.
So if that returns a CGRect, why doesn't it work? Any idea?