只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-07-22 16:15 光光96 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-07-22 15:50 光光96 阅读(0) 评论(0) 推荐(0) 编辑
摘要: let width = UIScreen.mainScreen().bounds.size.width let height = UIScreen.mainScreen().bounds.size.height override func viewDidLoad() { super.viewDidL 阅读全文
posted @ 2016-07-22 15:29 光光96 阅读(5547) 评论(0) 推荐(0) 编辑
摘要: /***************火焰图片Demo************start*******/ var imgView: UIImageView? override func viewDidLoad() { super.viewDidLoad() let screenWidth = UIScre 阅读全文
posted @ 2016-07-22 14:59 光光96 阅读(214) 评论(0) 推荐(0) 编辑
摘要: // MARK: 提示框 func _initAlertView() { let btn = UIButton(type: UIButtonType.ContactAdd) btn.frame = CGRect(x: 100, y: 150, width: 50, height: 50) btn.a 阅读全文
posted @ 2016-07-22 14:33 光光96 阅读(268) 评论(0) 推荐(0) 编辑
摘要: // Make: 加载 菊花 func _initUIActivityIndicatorView() { let activity = UIActivityIndicatorView(activityIndicatorStyle: UIActivityIndicatorViewStyle.White 阅读全文
posted @ 2016-07-22 11:30 光光96 阅读(1482) 评论(0) 推荐(0) 编辑
摘要: //MARK: 文本输入框 func _initTextField() { //如果需要在模拟器中调用电脑的键盘 快捷键:command + shift + k let textField = UITextField(frame: CGRect(x: 100, y: 100, width: 200, 阅读全文
posted @ 2016-07-22 11:03 光光96 阅读(1184) 评论(0) 推荐(0) 编辑
摘要: // MARK: - Action // MARK: compose mail 发送邮件 @IBAction func composeMail(sender: AnyObject) { // 判断能否发送邮件 guard MFMailComposeViewController.canSendMail 阅读全文
posted @ 2016-07-22 10:39 光光96 阅读(1235) 评论(0) 推荐(1) 编辑
摘要: var queue: dispatch_queue_t = dispatch_get_main_queue()// 主线程 queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0)// 后台执行 // 异步执行队 阅读全文
posted @ 2016-07-22 10:31 光光96 阅读(243) 评论(0) 推荐(0) 编辑