2

I am drawing text in the view with CoreText. To learn this I used a tutorial, but suddenly it uses self.bounds.size.height, in a part where it flips the coordinate system. When I was duplicating the code in Xcode it gave an error because 'bounds' was not a structure or union. Why is this a error and can anyone give a small but detailed explanation of why it uses bounds Thanks on forehand, Nicholas

Filip Radelic
  • 26,607
  • 8
  • 71
  • 97
user744149
  • 35
  • 4

1 Answers1

0

If you placed that code inside a UIViewController subclass, it should be: self.view.bounds.size.height. Or put it in a UIView subclass like in the tutorial you followed.

Filip Radelic
  • 26,607
  • 8
  • 71
  • 97