开发者

CTFont and Core Text framework

I'm 开发者_如何转开发trying to use CTFont in an iPhone app. I have :-

  1. Added the Core Text framework
  2. 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜