1
CGContextRef ctx;
NSGraphicsContext *nsGraphicsContext;
nsGraphicsContext = [NSGraphicsContext
graphicsContextWithGraphicsPort:ctx flipped:NO];
[NSGraphicsContext saveGraphicsState];
[NSGraphicsContext setCurrentContext:nsGraphicsContext];
iphone沒有NSGraphicsContext。如何在iphone中實現NSGraphicsContext
因此CGContextRef context = UIGraphicsGetCurrentContext()....我使用這個嗎?
在此先感謝。
你真的想做什麼? – 2010-08-21 18:13:51
嗨... st3fan ... 我是開發者世界的初學者。 其實我在做UIImageView的污跡效果。 我確實對mac有塗抹效果。現在我正在移植到iphone。 我在mac中找到NSGraphicsContext。 相反NSGraphicsContext可以在我的塗抹應用程序中使用CGContextRef嗎? 我發現iPhone上只有很少的API。 – kiran 2010-08-22 21:52:11