[self bounds] error


#1

When typing in the code:

and building I get an error stating: “Receiver type ‘HypnosisterAppDelegate’ for instance message does not declare a method with selector ‘bounds’”.

What am I doing wrong?


#2

Looks like you are treating HypnosisterAppDelegate as UIView, which declares the bounds method.


#3

Thanks to your comment I realized I was writing the code in the wrong class. After moving it to HypnosisView (a subclass of UIView) everything is correct.

Thanks!!