Oh QuartzCore, I knew ye well...

I just refactored my iPhone app to pull several methods out from one UIViewController to another when I started getting the following errors:

  1. accessing unknown 'opacity' component of a property
  2. accessing unknown 'position' component of a property
  3. accessing unknown 'bounds' component of a property

And some matching warnings:

  1. warning: no -setAffineTransform:' method found

Initially, I was wondering why I'd suddenly lost a reference to my view or whether I had somehow overwritten the layer on my UIView or something.

Thing is, I'd simply forgotten to move the Core Animation/QuartzCore import over to the new ViewController's header file while moving the animation methods. So if you start getting similar errors, make sure you have #import in the header of your class.

Comments