摘要:
- (UIImage *)cutFromView:(UIView *)view{ UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, 0.0); [view.layer renderInContext:UIGraph...
阅读全文
posted @ 2015-06-23 17:18
airy99
阅读(194)
推荐(0)
编辑
摘要:
1 /** 2 * 模糊背景 3 * 4 * @param image 需要模糊的图片 5 * @param blur 高斯模糊的值 6 * 7 * @return 8 */ 9 - (UIImage *)blurryImage:(UIImage *)image...
阅读全文
posted @ 2015-06-23 17:16
airy99
阅读(456)
推荐(0)
编辑
摘要:
1 CAGradientLayer *layer = [CAGradientLayer layer]; 2 layer.startPoint = (CGPoint){0.5f, 0.0f}; 3 layer.endPoint = (CGPoint){0.5f, 1.0f}; 4...
阅读全文
posted @ 2015-06-23 17:14
airy99
阅读(179)
推荐(0)
编辑
摘要:
UIImage *image = [UIImage imageNamed:@"icon"]; UIImageView *bgView = [[UIImageView alloc] initWithImage:image]; bgView.frame = CGRectMake(100,...
阅读全文
posted @ 2015-06-23 17:12
airy99
阅读(117)
推荐(0)
编辑