I had a malfunction in my code, and I traced it until the line crashed while transmitting 2 CGColorRefs. Here are the objects:
CGColorRef startColor = [[UIColor colorWithWhite:0.92 alpha:1.0]CGColor];
CGColorRef endColor = [[UIColor colorWithWhite:0.94 alpha:1.0]CGColor];
NSLog(@"start: %@ end: %@", startColor, endColor);
NSLog returns a failure. What is wrong with them?
EDIT - where is it crashing:
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGFloat locations[] = { 0.0, 1.0 };
NSArray *colors = [NSArray arrayWithObjects:(__bridge_transfer id)startColor, (__bridge_transfer id)endColor, nil];
source
share