2015年6月23日
摘要: - (UIImage *)cutFromView:(UIView *)view{ UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, 0.0); [view.layer renderInContext:UIGraph... 阅读全文
posted @ 2015-06-23 17:18 airy99 阅读(193) 评论(0) 推荐(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 阅读(452) 评论(0) 推荐(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) 推荐(0) 编辑
摘要: UIImage *image = [UIImage imageNamed:@"icon"]; UIImageView *bgView = [[UIImageView alloc] initWithImage:image]; bgView.frame = CGRectMake(100,... 阅读全文
posted @ 2015-06-23 17:12 airy99 阅读(116) 评论(0) 推荐(0) 编辑