2
A
回答
6
在drawRect:
方法做:
- (void)drawRect:(CGRect)rect
{
CGContextRef ctx = UIGraphicsGetCurrentContext();
UIGraphicsPushContext(ctx);
CGContextSetRGBFillColor(ctx, 1.0f, 1.0f, 1.0f, 1.0f); // white color
CGContextFillEllipseInRect(ctx, CGRectMake(10.0f, 10.0f, 100.0f, 100.0f)); // a white filled circle with a diameter of 100 pixels, centered in (60, 60)
UIGraphicsPopContext();
}
相關問題
- 1. progress circle UIControll iPhone
- 2. ImageMagick Crop Circle from Circle?
- 3. iPhone SDK:NSInvalidArgumentException -UIView numberOfComponentsInPickerView
- 4. iPhone UIView和UIImagePickerController
- 5. 旋轉UIView iPhone
- 6. iPhone +的UIView
- 7. iPhone UIView資源
- 8. iphone:在UIView的
- 9. iphone-uiview-background
- 10. 展開UIView -Iphone
- 11. UIImage in a circle
- 12. OpenGL C++ Circle vs Circle Collision
- 13. DACircularProgress Track Circle比Progress Circle大
- 14. UIView的動畫iPhone
- 15. iPhone xCode |滑動UIView
- 16. Iphone的UIView實現
- 17. UIView Zoomin Zoom in iphone
- 18. iphone-的UIView,彈出
- 19. iPhone動態uiview reording
- 20. 如何發送uiview到iPhone的另一個uiview的背面iphone
- 21. Circle ProgressBar
- 22. cv :: circle
- 23. UIView Iphone 4和Iphone 5中的問題
- 24. iPhone - UIView方向更改
- 25. IPhone - UIView addSubview頂部差距
- 26. iPhone中的Quartz Composer UIView
- 27. iPhone自定義UIView邊界
- 28. UIView高度不對iPhone 5
- 29. 在iPhone屏幕上的UIView
- 30. 的UIView在iPhone旋轉
許多感謝您的慷慨時間來幫助。 – 2010-01-17 23:53:33