i've noticed since the early versions of iPhone SDK that the Core Graphics framework is automatically linked to new projects along with UIKit and Foundation.
just now i've realized that one of my classes which uses Core Graphics will still function (in the simulator, haven't tried on device) even without #import <CoreGraphics/CoreGraphics.h>.
shouldn't the compiler be freaking out?
just now i've realized that one of my classes which uses Core Graphics will still function (in the simulator, haven't tried on device) even without #import <CoreGraphics/CoreGraphics.h>.
Code:
//stuff like this
CGImageRef imageRef = [image CGImage];
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
NSUInteger imageRefHeight = CGImageGetHeight(imageRef);
shouldn't the compiler be freaking out?