码迷,mamicode.com
首页 >  
搜索关键字:drawrect    ( 392个结果
在view扣除正方形
- (void)drawRect:(CGRect)rect { [super drawRect:rect]; CGContextRef ctx = UIGraphicsGetCurrentContext(); CGContextSetRGBFillColor(ctx, .3, .3, .3, .1); CGContextFillRect(ctx, self.boun...
分类:其他好文   时间:2014-04-29 13:33:22    阅读次数:284
ios:CGContextRef 渲染中文问题
1.项目中遇到drawRect来渲染中文,但是调用CGContextShowTextAtPoint方法失败,于是查了些资料整理总结一下2.既然apple能显示中文,那么自然也是支持中文的。查看所有字体:NSArray *fontFamilies = [UIFontfamilyNames];for(N...
分类:移动开发   时间:2014-04-28 13:52:50    阅读次数:550
392条   上一页 1 ... 38 39 40
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!