无法使用CATRansform3DMakeRotation在xcode中构建iphone项目

Pet*_*chl 2 iphone core-animation build-error

我需要在我的项目中使用CATRansform3DMakeRotation函数,但是当我尝试编译时出现构建错误

    Undefined symbols:
  "_CATransform3DMakeRotation", referenced from:
Run Code Online (Sandbox Code Playgroud)

如果我评论该功能,该项目建立良好.

任何想法为什么会发生这种情况?

Pet*_*chl 8

不足以包含QuartzCore头文件,您还必须右键单击"Frameworks",选择"Add Existing Frameworks"并添加"QuartzCore.framework".问题解决了 :)