首页 新闻 会员 周边

xcode4.5画图填充色的问题

0
悬赏园豆:100 [已关闭问题] 关闭于 2013-01-21 12:49

XCODE4.5

IOS 6.0

能画图,填充颜色没效果。代码如下。

CGContextRef context = UIGraphicsGetCurrentContext(); 

CGContextSetStrokeColorWithColor(context, [UIColor redColor].CGColor);

CGContextSetFillColorWithColor(context, [UIColor  redColor].CGColor);

CGContextSetLineWidth(context, 1.0);

CGContextMoveToPoint(context, 1010);

CGContextAddLineToPoint(context, 10100);

CGContextAddLineToPoint(context, 100100);

CGContextAddLineToPoint(context, 10010);

CGContextAddLineToPoint(context, 1010);

CGContextStrokePath(context);

CGContextFillPath(context);

07301234的主页 07301234 | 菜鸟二级 | 园豆:306
提问于:2013-01-11 15:19
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册