How to access the CGColor property of UIColor in CGContextSetFillColorWithColor?
- by Azeworai
CGContextSetFillColorWithColor(g, [UIColor greyColor].CGColor);
I'm trying to follow O'Reilly's iPhone Game Development book on page 73 Chapter 3 but I'm running into a compile error that states
error: request for member 'CGColor' in something not a structure or union
According to the book's errata page this is an unconfirmed errata in the book. I'm hoping that someone could help me replace that line of code to something that works. The example project can be downloaded from sourceforge at this link.