Incompatible Objective-C types


When building with UIScrollView, with the line:

I get the warning:

This also appears in viewForZoomingInScrollView when return view.

Is it common practice to cast away the warning as I would do in C where appropriate? e.g.



You shouldn’t have to do this in this example.

Do you have a #import “HypnosisView.h” in the appDelegate ?



Also, in your HypnosisView.h, make sure that it’s declared as a subclass of UIView (as opposed to, say, NSObject).