Wednesday, June 13, 2012

QuartzCore Framework

If You get this kind of compile error,

Property 'anchorPoint' cannot be found in forward class object 'CALayer'

Solution:

Most likely, the error is caused because the QuartzCore  Framework is not added to the project.

To do this, select the project in the left sidebar and then select Target and then the Build Phases tab on the right pane. Expand the “Link Binary with Libraries” section and then click on the + sign and look for QuartzCore to add it.

Don't forget to Import the QuartzCore to your .m file.

Use this code. #import <QuartzCore/QuartzCore.h>

Done. :)

No comments:

Post a Comment