07 2016 档案

摘要:// Override point for customization after application launch. //初始化window, 大小为设备物理大小 self.window = UIWindow(frame: UIScreen.mainScreen().bounds) //把wi 阅读全文
posted @ 2016-07-29 17:26 光光96 阅读(751) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2016-07-22 16:15 光光96 阅读(2) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2016-07-22 15:50 光光96
摘要: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 阅读(5570) 评论(0) 推荐(0)
摘要:/***************火焰图片Demo************start*******/ var imgView: UIImageView? override func viewDidLoad() { super.viewDidLoad() let screenWidth = UIScre 阅读全文
posted @ 2016-07-22 14:59 光光96 阅读(221) 评论(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 阅读(278) 评论(0) 推荐(0)
摘要:// Make: 加载 菊花 func _initUIActivityIndicatorView() { let activity = UIActivityIndicatorView(activityIndicatorStyle: UIActivityIndicatorViewStyle.White 阅读全文
posted @ 2016-07-22 11:30 光光96 阅读(1511) 评论(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 阅读(1215) 评论(0) 推荐(0)
摘要:// MARK: - Action // MARK: compose mail 发送邮件 @IBAction func composeMail(sender: AnyObject) { // 判断能否发送邮件 guard MFMailComposeViewController.canSendMail 阅读全文
posted @ 2016-07-22 10:39 光光96 阅读(1256) 评论(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 阅读(256) 评论(0) 推荐(0)
摘要://定义枚举 enum MapDirection { case North case South case East case West func simpleDescription() -> String { switch self { case .North: return "North" ca 阅读全文
posted @ 2016-07-21 17:52 光光96 阅读(298) 评论(0) 推荐(0)