- 博客(2)
- 收藏
- 关注
原创 iOS本地推送通知的基本使用
iOS10以前本地通知(UILocalNotification) 使用步骤: 创建一个UILocalNotification对象 设置触发时间及标题、内容 注册并安排通知 // 1. 创建一个UILocalNotification对象 let localNotification = UILocalNotification() // 2. 设置触发时间及标题、内容 localNotification.fireDate = Date(timeIntervalSinceNow: 3) localNotifi
2020-05-16 22:39:09
904
原创 iOS 定位服务与地图
CoreLocation 使用步骤: 导入CoreLocation库 创建CLLocationManager对象 请求用户授权 — 需要在Info.plist中加入 NSLocationWhenInUseUsageDescription 这个键 设置代理 — 并实现相应代理方法 调用开始定位方法 调用结束定位方法import UIKit import CoreLocation class Vi...
2020-05-06 15:47:12
330
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人