摘要: /**点击手势*/ func tapGestureDemo() { //建立手势识别器 let gesture = UITapGestureRecognizer(target: self, action: "viewTap:") //附加识别器到视图 self.view1.addGestureRec 阅读全文
posted @ 2016-07-24 18:57 无敌小蚂蚱 阅读(2619) 评论(0) 推荐(0)
摘要: 1,标签的创建 1 2 3 4 5 6 7 8 9 10 import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() //设置标签x坐标:10,y坐标: 阅读全文
posted @ 2016-07-24 18:53 无敌小蚂蚱 阅读(847) 评论(1) 推荐(0)