摘要:
// // ViewController.swift // ios核心动画编程 // // Created by Macx on 18/9/16. // Copyright (c) 2018年 learn. All rights reserved. // import UIKit class Vie 阅读全文
摘要:
// // ViewController.swift // iOS 动画编程 // // Created by Macx on 18/9/16. // Copyright (c) 2018年 learn. All rights reserved. // import UIKit class View 阅读全文
摘要:
let mySwitch:UISwitch = UISwitch(frame: CGRect(x:0,y:80,witdh:10,height:10) //添加触发事件 mySwitch.addTarget(self,action:Selector("SwitchClick:")),forContr 阅读全文
摘要:
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 阅读全文
摘要:
//创建一个button let button:UIbutton = UIbutton(type:UIbutoonType.Custom) //添加到视图上 self.view.addsubview(button) //添加事件 button.addTarget(self,action:Select 阅读全文