随笔分类 - iOS
iOS分享以及回忆总结
摘要:github: https://github.com/realm/realm-swift 文档介绍:https://wenku.baidu.com/view/0d407c5c8d9951e79b89680203d8ce2f0066650c.html // Define your models lik
阅读全文
摘要:import Foundation import UIKit extension Data { enum ImageType { case unknown case jpeg case jpeg2000 case tiff case bmp case ico case icns case gif c
阅读全文
摘要:Xcode Search Paths相关配置: 参考:https://www.jianshu.com/p/9f9c1fd2e8b5 开发的过程当中,导入第三方库(framework/.a)或者下载使用别人的demo会经常会遇到一些关于库的导入的问题。而导入第三方库后,这写库的路径应该现在在导入当前项
阅读全文
摘要:https://blog.csdn.net/sun_cui_hua/article/details/106092576
阅读全文
摘要:Swift和OC的区别有很多,这里简要总结这几条: Swift 派发机制 派发目的是让 CPU 知道被调用的函数在哪里。Swift 语言是支持编译型语言的直接派发,函数表派发和消息机制派发三种派发方式的,下面分别对这三种派发方式说明下。 直接派发 C++ 默认使用的是直接派发,加上 virtual
阅读全文
摘要:Texture(ASDK)、ComponentKit、LayoutKit、YogaKit
阅读全文
摘要:远程推送时 , 应用可能处于下列三种状态: (1) . 应用开启时 , 应用在前台 (2) . 应用开启时 , 应用在后台 (3) . 应用未启动(应用被杀死) 从苹果APNS服务器远程推送时: 1 . 如果应用处于 (1) 状态 , 则不会发出声音 , 会直接调用appDelegate的代理方法d
阅读全文
摘要:最近需要重装一次。 检查是否有安装残留(删除CocoaPods) 如果之前装过cocopods,最好先卸载掉,卸载命令: sudo gem uninstall cocoapods 先查看本地安装过的cocopods相关东西,命令如下: gem list --local | grep cocoapod
阅读全文
摘要:定位转换 //WGS-84:是国际标准,GPS坐标(Google Earth使用、或者GPS模块) //GCJ-02:中国坐标偏移标准,Google Map、高德、腾讯使用 //BD-09: 百度坐标偏移标准,Baidu Map使用 国际共识:WGS84的坐标系统,以经纬度的形式来表示地球平面上的某
阅读全文
摘要:如何将iOS的文本框默认的copy、past改成中文复制粘贴 info.plist中将Localization native development region改为China,并增加Localized resources can be mixed,设为YES, 此方法也可以将导航栏中的返回按钮由“
阅读全文
摘要:// // RAAppleIdManager.swift // ***** // // Created by baitongtong on 2020/11/5. // Copyright © 2020 hq. All rights reserved. // import UIKit import A
阅读全文
摘要:// // RAWechatManager.swift // **** // // Created by baitongtong on 2020/11/3. // Copyright © 2020 hq. All rights reserved. // import UIKit ///写好的,喜欢加
阅读全文
摘要:Universal Links 通用链接(Universal Link)是iOS9推出的一项新功能,如果你的应用(app)支持通用链接(Universal Link)之后,iOS用户能够在点击网页的链接的时候无缝的重定向到已经安装的app,不需要额外的任何操作。如果没有安装对应的app,那么点击链接
阅读全文
摘要:在初始化的时候传入一个固定的参数。 1 在自定义的初始化方法中,一定要调用父类的 designated 初始化方法 即 init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) 或 init?(coder aDecoder
阅读全文
摘要:给视图添加点击波纹效果 import UIKit class ViewController: UIViewController { private let radarAnimation = "radarAnimation" private var animationLayer: CALayer? p
阅读全文
摘要:Xcode 版本支持路径 com+col+G 前往 col+v /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
阅读全文
摘要:分享近期 GitHub 上比较流行的 22 个和 iOS 开发相关的开源项目。 包括开发辅助工具,异步编程库,JSON 解析,移动端数据库,图像视频处理,网络请求,UI 框架、组件,算法、数据结构等内容。 Accio 使用 Swift 编写的 iOS/tvOS/watchOS/macOS 依赖管理工
阅读全文
摘要:https://blog.csdn.net/jiashaoying/article/details/79079500 下拉刷新 EGOTableViewPullRefresh - 最早的下拉刷新控件。 SVPullToRefresh - 下拉刷新控件。 MJRefresh - 仅需一行代码就可以为U
阅读全文
摘要:1.GCD信号量简介 站在巨人的肩膀上,大家勇于学习即可:https://www.jianshu.com/p/24ffa819379c GCD信号量机制主要涉及到以下三个函数: dispatch_semaphore_create(long value); // 创建信号量 dispatch_sema
阅读全文
摘要:apple 官方文档 https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html#//apple_
阅读全文