简体   繁体   中英

CATransform3DMakeRotation symbol not found

I've included:

#import "QuartzCore/QuartzCore.h"

but when I try to build, I get the error mentioned in the title. Is there something else I need to do to tell XCode to include the framework?

The code where I use it is:

CALayer *layer = paperView.layer;
CATransform3D rotation = CATransform3DMakeRotation(1, 0, 0, 1);

I got it working by:

In the "Groups & Files" pane on the left:

Right click Frameworks -> Add -> Existing Frameworks

and add QuartzCore.Framework

Try adding the CoreGraphics.framework to you project.

Right click Frameworks -> Add -> Existing Frameworks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM