CTFont and Core Text framework
I'm 开发者_如何转开发trying to use CTFont in an iPhone app. I have :-
- Added the Core Text framework
- Added #import "CoreText/CoreText." to the file I am trying to use CTFont in.
However the compiler is saying that "CTFont undeclared"
??? what am I missing?
You should #import <CoreText/CoreText.h>
Also, just incase your still having issues. CTFontRef is the struct you want not CTFont
精彩评论