2024年5月8日

iOS macOS 异步加载数据再回到主线程

摘要: #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any addit 阅读全文

posted @ 2024-05-08 11:02 高彰 阅读(3) 评论(0) 推荐(0) 编辑

iOS macOS 地图使用原生demo

摘要: iOS中想要定位用户信息,需要向用户申请对应的权限,主要有三种:NSLocationWhenInUseUsageDescription 应用使用期间NSLocationAlwaysUsageDescription 始终允许NSLocationAlwaysAndWhenInUseUsageDescri 阅读全文

posted @ 2024-05-08 10:24 高彰 阅读(15) 评论(0) 推荐(0) 编辑

iOS info.plist 中的隐私权限

摘要: //a. 常用权限: <key>NSCameraUsageDescription</key> <string>"xxx”需要您的同意,才能访问相机,以便于拍照上传头像等"</string> <key>NSPhotoLibraryUsageDescription</key> <string>"xxx” 阅读全文

posted @ 2024-05-08 09:54 高彰 阅读(33) 评论(0) 推荐(0) 编辑

kCLErrorDomain Code=8 和 kCLErrorDomain Code=0 iOS 海外地图使用报错 解决办法亲测有效

摘要: 海外地图使用报错Domain=kCLErrorDomain Code=8 原因是你在国内测试海外地图功能如定位和导航等,iOS内置的地理地图权限导致在国内使用就会有高德地图的标识出现, 就意味着你只能正常使用国内地理信息比如通过坐标获取如:深圳 CLLocationCoordinate2D coor 阅读全文

posted @ 2024-05-08 09:35 高彰 阅读(101) 评论(0) 推荐(0) 编辑

导航