摘要: 第一种方法: UIBlurEffect *effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; UIVisualEffectView *effectView = [[UIVisualEffectView alloc] init 阅读全文
posted @ 2018-04-02 09:44 chihbun 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 其中有一个不太规则的label: image.png image.png 这个label顶部的两个角是圆角,底部的两个角是直角,底部还有一个小三角。 思路 CAShapeLayer联合UIBezierPath画一个不规则的layer作为label.layer的mask。 具体实现 1.自定义一个继承 阅读全文
posted @ 2018-04-02 09:35 chihbun 阅读(726) 评论(0) 推荐(0) 编辑