摘要: 1 - (UIColor *)getColor:(NSString *)hexColor 2 { 3 unsigned int red,green,blue; 4 NSRange range; 5 range.length = 2; 6 7 range.location = 0; 8 [[NSScanner scannerWithString:[hexColor substringWithRange:range]] scanHexInt:&red]; 9 10 range.location = 2;11 [[NSSca... 阅读全文
posted @ 2013-12-04 16:17 wangzhenxiang 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 1 UILabel *_label = [[UILabel alloc]initWithFrame:CGRectMake(20, self.view.frame.size.height*0.5f, self.view.frame.size.width*0.5f, 40)]; 2 _label.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.6]; 3 _label.textColor = [UIColor whiteColor]; 4 _label.layer.cornerRadius = 5; 5 _lab.. 阅读全文
posted @ 2013-12-04 11:01 wangzhenxiang 阅读(122) 评论(0) 推荐(0) 编辑