摘要:
一、UILabel(1)初始化UILabelUILabel *scoreLabel = [ [UILabel alloc ] initWithFrame:CGRectMake((self.bounds.size.width / 2), 0.0, 150.0, 43.0) ];scoreLabel.textAlignment = UITextAlignmentCenter;scoreLabel.text = @"XXXXX";scoreLabel.textColor = [UIColor whiteColor];scoreLabel.backgroundColor = [UI 阅读全文
posted @ 2012-06-18 11:33
奔放小青年
阅读(6156)
评论(0)
推荐(0)
摘要:
- (UIImage *)createImageWithColor:(UIColor *)color{ CGRect rect = CGRectMake(0.0f, 0.0f, 1.0f, 1.0f); UIGraphicsBeginImageContext(rect.size); CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetFillColorWithColor(context, [color CGColor]); CGContextFillRect(context, rect); UIImag... 阅读全文
posted @ 2012-06-18 11:19
奔放小青年
阅读(1946)
评论(0)
推荐(0)

浙公网安备 33010602011771号