- 博客(2)
- 资源 (4)
- 收藏
- 关注
原创 CAGradientLayer实现"滑动来解锁"动画效果
新建一个应用名为GradientAnimation,打开Main.storyboard,将ViewController的View背景色设置为灰黑色,拖一个UIView到ViewController中,将其颜色设置为无色并设置好布局约束: 接着我们拖一个UILabel到刚才拖入的UIView中,设置高宽等同于它的父视图: 我对该UILabel的属性设置如下:
2016-06-27 14:25:30 2527
原创 NSAttributedString图文详解
1.NSKernAttributeName:@10 调整字句 kerning 字句调整 2.NSFontAttributeName :[UIFont systemFontOfSize:_fontSize] 设置字体 3.NSForegroundColorAttributeName:[UIColor redColor] 设置文字颜色
2016-06-01 11:12:02 1049
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人