![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
显示类
LMMC
呵呵!!
展开
-
动态模糊,毛玻璃
//实现模糊效果 self.visualEffectView = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]]; // 三种风格 self.visualEffectView.frame = self.heroCollectionView.frame;原创 2015-12-31 09:51:17 · 443 阅读 · 0 评论 -
震屏动画
static int numberOfShakes = 4;//震动次数 static float durationOfShake = 0.3f;//震动时间 static float vigourOfShake = 0.03f;//震动幅度- (CAKeyframeAnimation *)shakeAnimation:(CGRect)frame { CAKeyframeAnimation转载 2015-12-31 09:53:21 · 437 阅读 · 0 评论 -
给控件添加阴影
// 不可过多添加 self.commentsView.layer.shadowOffset = CGSizeMake(0, 3); self.commentsView.layer.shadowRadius = 5.0; self.commentsView.layer.shadowColor = [UIColor blackColor].CGColor; self.commentsView.laye转载 2015-12-31 09:56:44 · 290 阅读 · 0 评论