What does “Receiver type 'CALayer' for instance message is a forward declaration” mean here?

后端 未结 1 1925
攒了一身酷
攒了一身酷 2021-01-30 19:11

I\'m porting a block of code from an iOS4 project to iOS5 and I\'m having some troubles with ARC. The code generates a PDF from a screen capture.

PDF Generation Code

相关标签:
1条回答
  • 2021-01-30 19:42

    I was able to duplicate your problem. This is what fixed it for me.

    Add QuartzCore.framework to your project and this line to your .m file.

    #import <QuartzCore/QuartzCore.h>
    
    0 讨论(0)
提交回复
热议问题