[self bounds] error


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?


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


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.