摘要:
You usually want to useNSIntegerwhen you don't know what kind of processor architecture your code might run on, so you may for some reason want the largest possibleinttype, which on 32 bit systems is just anint, while on a 64-bit system it's along.I'd stick with usingNSIntegerinstead ofi 阅读全文
摘要:
View Code CGContextRef context=UIGraphicsGetCurrentContext(); CGContextSetRGBStrokeColor(context, 1.0, 1.0, 1.0, 1.0); // If you were making this as a routine, you would probably accept a rectangle // that defines its bounds, and a radius reflecting the "rounded-ness" of the rectangle... 阅读全文