Adding Existing Framework to Xcode (iPhone) error
I have added the <QuartzCore/QuartzCore.h>
to my Frameworks folder in my iPhone project and added the #import "<QuartzCore/QuartzCore.h>"
statement at the top of a custom UIView
class.
However the custom UIView class gives me a "No such file or directory" compliation error in relation to the <QuartzCore/QuartzCore.h>
开发者_StackOverflow framework. Is there something else I need to set so that the compiler can see the framework.
I'm not expert on the Xcode IDE so any assistance would be extremely welcome.
try removing the quotes around the <QuartzCore/QuartzCore.h>
you don't need them when you are importing a framework.
This is the correct syntax:
#import <QuartzCore/QuartzCore.h> // not #import "<QuartzCore/QuartzCore.h>"
精彩评论