![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Swift
文章平均质量分 54
xcode_androidstudio
这个作者很懒,什么都没留下…
展开
-
字节流NSData(OC)、Data(Swift);
字节流NSData(OC)、Data(Swift);1、不同类型数据拼接字节流(拼包)UInt8、UInt16、UInt32组成的数据流拼接;varar: [UInt8] = Array.init(repeating: 0, count: 4)ar[0] = 15ar[1] = 13letaa_ar = Data(bytes: ar, count: ar.count)varbr: [UInt16] = Array.init(repeating: 0, count: 4)br...转载 2021-11-05 09:30:47 · 844 阅读 · 0 评论 -
Swift 第三方框架
1控制台输出中文ByebyeUnicode 直接pod 就行。目前觉得这个好点,欢迎评论更好的2网络请求交互部分Alamofire著名的 AFNetworking 络基础库 Swift 语言版Moya:这是一个基于Alamofire的更高层网络请求封装抽象层。AlamofireImage基于 Alamofire 的网络图片组件库NetReachability检查网络连接的连通性SwiftyJSON直接对返回数据进行操作,不包含模型转换.个人不太喜欢ObjectMappe.原创 2021-10-27 16:52:17 · 207 阅读 · 0 评论 -
iOS 跳转到系统设置和应用设置
let url = URL(string: "App-Prefs::Settings")//系统设置 // let url = URL(string: UIApplication.openSettingsURLString)//应用设置 if UIApplication.shared.canOpenURL(url!){ UIApplication....原创 2021-10-12 09:59:24 · 638 阅读 · 0 评论 -
UiTableViewCell 最顶部最底部添加圆角 支持多分组
override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { if (cell.responds(to: #selector(getter: UIView.tintColor))){ if tableView == self.tableView { ...原创 2021-09-30 15:15:03 · 184 阅读 · 0 评论 -
Storyboard 找某个vc
var mainVc:MainTabBarController?=nil let storyboard = UIStoryboard(name: "Main", bundle:Bundle.main) if #available(iOS 13.0, *) { mainVc = storyboard.instantiateViewController(identifier: "main") ...原创 2021-09-02 11:47:35 · 177 阅读 · 0 评论