4
votes

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?

2

2 Answers

16
votes

You should #import <CoreText/CoreText.h>

1
votes

Also, just incase your still having issues. CTFontRef is the struct you want not CTFont