06 2015 档案
iOS CALayer 抖动效果
摘要:方式一 1 - (void)shakeAnimationForView:(UIView *)view 2 { 3 CALayer *layer = [view layer]; 4 CAKeyframeAnimation *animation = [CAKeyframeAnimatio... 阅读全文
posted @ 2015-06-25 11:54 airy99 阅读(622) 评论(0) 推荐(0)
ios view截图
摘要:- (UIImage *)cutFromView:(UIView *)view{ UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, 0.0); [view.layer renderInContext:UIGraph... 阅读全文
posted @ 2015-06-23 17:18 airy99 阅读(201) 评论(0) 推荐(0)
iOS view模糊背景
摘要: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 阅读(462) 评论(0) 推荐(0)
iOS CAGradientLayer 颜色渐变
摘要: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 阅读(188) 评论(0) 推荐(0)
iOS 8 毛玻璃效果
摘要:UIImage *image = [UIImage imageNamed:@"icon"]; UIImageView *bgView = [[UIImageView alloc] initWithImage:image]; bgView.frame = CGRectMake(100,... 阅读全文
posted @ 2015-06-23 17:12 airy99 阅读(125) 评论(0) 推荐(0)
iOS 动画效果
摘要:https://github.com/lightSky/Awesome-MaterialDesign 阅读全文
posted @ 2015-06-04 16:32 airy99 阅读(92) 评论(0) 推荐(0)