摘要:
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;{ NSString *text = [items objectAtIndex:[indexPath row]]; //下句中(CELL_CONTENT_WIDTH - (CELL_CONTENT_MARGIN * 2) 表示显示内容的label的长度 ,20000.0f 表示允许label的最大高度 CGSize constraint = CGSizeMake(CELL_CONT... 阅读全文
摘要:
给UIImage添加圆角,也可用于CCSprite//给图片添加圆角显示- (UIImage *) roundCorners: (UIImage*) img{ int w = img.size.width; int h = img.size.height; CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); CGContextRef context = CGBitmapContextCreate(NULL, w, h, 8, 4 * w, colorSpace, kCGImageAlphaPremulti... 阅读全文
摘要:
1、UILabel字体加粗 IOS加粗;[UILabelsetFont:[UIFontfontWithName:@"Helvetica-Bold"size:20]];加粗并且倾斜[UILabelsetFont:[UIFontfontWithName:@"Helvetica-BoldOblique"size:20]];2、分享一个可垂直顶端对齐的UILabelhttp://www.devdiv.com/分享一个可垂直顶端对齐的UILabel-weblog-64796-7239.html/* Accessing the Text Attributes tex 阅读全文