摘要: // // ViewController.swift // ios核心动画编程 // // Created by Macx on 18/9/16. // Copyright (c) 2018年 learn. All rights reserved. // import UIKit class Vie 阅读全文
posted @ 2018-09-17 13:23 知津楼上风好大 阅读(114) 评论(0) 推荐(0) 编辑
摘要: // // ViewController.swift // iOS 动画编程 // // Created by Macx on 18/9/16. // Copyright (c) 2018年 learn. All rights reserved. // import UIKit class View 阅读全文
posted @ 2018-09-16 15:34 知津楼上风好大 阅读(126) 评论(0) 推荐(0) 编辑
摘要: let mySwitch:UISwitch = UISwitch(frame: CGRect(x:0,y:80,witdh:10,height:10) //添加触发事件 mySwitch.addTarget(self,action:Selector("SwitchClick:")),forContr 阅读全文
posted @ 2018-09-10 20:40 知津楼上风好大 阅读(143) 评论(0) 推荐(0) 编辑
摘要: let label:UIlabel = UIlabel(frame:CGrect(x:0,y:0,width:20,height:40))label.text = "i love ios"label.font = UIFont.boldSystemFontOfSize(20)label.textco 阅读全文
posted @ 2018-09-10 20:11 知津楼上风好大 阅读(81) 评论(0) 推荐(0) 编辑
摘要: //创建一个button let button:UIbutton = UIbutton(type:UIbutoonType.Custom) //添加到视图上 self.view.addsubview(button) //添加事件 button.addTarget(self,action:Select 阅读全文
posted @ 2018-09-08 17:06 知津楼上风好大 阅读(97) 评论(0) 推荐(0) 编辑