I am having trouble working CGColorGetConstantColor () to work on iPhone. The Apple documentation states that you can pass any of the "Constant Colors" without reference to what Constant Colors actually are, so I suggested that you can just use the ones documented for OS X :
CGColorRef blackColor = CGColorGetConstantColor(kCGColorBlack);
This does not seem to be the case since Xcode is causing this error: "kCGColorBlack" is unavailable (declared in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers /CGColor.h: 123) "
Does anyone know what the new constants are (and where are they documented)?
source
share