Incompatible Objective-C types


#1

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.


#2

Hi,

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

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

Gareth


#3

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