摘要:
第一种方法 let bgView = UIView() bgView.backgroundColor = R.color.color_blue()! bgView.layer.cornerRadius = 8 bgView.layer.maskedCorners = [.layerMinXMinYC
阅读全文
posted @ 2019-02-13 15:54
懂事长qingzZ
阅读(647)
推荐(0)
摘要:
import UIKit class ViewController: UIViewController { override func touchesBegan(_ touches: Set, with event: UIEvent?) { print("点了 touchesBegan") let url...
阅读全文
posted @ 2019-02-11 14:04
懂事长qingzZ
阅读(354)
推荐(0)
摘要:
import UIKit /* * 注册协议view:没找到 UI原图,咱不实现 */ class JYRegisterProtocolView: UIView { /// 点击同意协议的回调 private var clickSelectedBtnBlock:((_ isSelected:Bool) -> Void)? /// 点击完成按钮的回...
阅读全文
posted @ 2019-01-24 16:24
懂事长qingzZ
阅读(952)
推荐(0)
摘要:
Swift3.1的DeviceToken打印的是32Byteshttps://www.jianshu.com/p/fed585eef7c1
阅读全文
posted @ 2019-01-22 16:53
懂事长qingzZ
阅读(1003)
推荐(0)
摘要:
1. SB放上俩 imageview,拖线成类属性
阅读全文
posted @ 2019-01-22 09:44
懂事长qingzZ
阅读(277)
推荐(0)
摘要:
/** * 设置16进制颜色: * 可识别类型 * 1:有# * 2:没有# * 3:含有0X */ extension UIColor{ class func hexadecimalColor(hexadecimal:String)->UIColor{ var cstr = hexadecimal.trimmingCharacters(in...
阅读全文
posted @ 2019-01-22 09:41
懂事长qingzZ
阅读(175)
推荐(0)
摘要:
详情查看: https://cloud.tencent.com/developer/article/1339074 https://www.jianshu.com/p/58cf8b21f268 详情查看: https://cloud.tencent.com/developer/article/133
阅读全文
posted @ 2019-01-21 10:45
懂事长qingzZ
阅读(199)
推荐(0)
摘要:
import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() } override func motionBegan(_ motion: UIEvent.EventSubtype, with ev...
阅读全文
posted @ 2019-01-18 11:45
懂事长qingzZ
阅读(300)
推荐(0)
摘要:
import UIKit //1.加速器框架 import CoreMotion class ViewController: UIViewController { //1.创建运动管理者 必须设置为 全局的 let manager = CMMotionManager() override func viewDidLoad() { sup...
阅读全文
posted @ 2019-01-18 10:56
懂事长qingzZ
阅读(200)
推荐(0)
摘要:
网络 Alamofire:http网络请求事件处理的框架。 Moya:这是一个基于Alamofire的更高层网络请求封装抽象层。 Reachability.swift:用来检查应用当前的网络连接状况。 综合 Perfect:swift的服务器端开发框架(针对于移动后端开发、网站和web应用程序开发)
阅读全文
posted @ 2019-01-18 10:35
懂事长qingzZ
阅读(1056)
推荐(1)