摘要: 1,CAKeyframeAnimation介绍 CAKeyframeAnimation可以实现关键帧动画,这个类可以实现某一属性按照一串的数值进行动画,就像是一帧一帧的制作出来一样。 2,使用样例(设置五个关键点坐标,图片依次按关键点移动) 1 2 3 4 5 6 7 8 9 10 11 12 13 阅读全文
posted @ 2016-12-02 10:09 公羽寒 阅读(1770) 评论(0) 推荐(0)
摘要: 1,多行文本控件的创建 1 2 3 4 let textview = UITextView(frame:CGRect(x:10, y:100, width:200, height:100)) textview.layer.borderWidth = 1 //边框粗细 textview.layer.b 阅读全文
posted @ 2016-12-02 09:26 公羽寒 阅读(379) 评论(0) 推荐(0)
摘要: 1,文本框的创建,有如下几个样式: UITextBorderStyle.none:无边框 UITextBorderStyle.line:直线边框 UITextBorderStyle.roundedRect:圆角矩形边框 UITextBorderStyle.bezel:边线+阴影 圆角矩形边框样例: 阅读全文
posted @ 2016-12-02 09:17 公羽寒 阅读(447) 评论(0) 推荐(0)