04 2021 档案
摘要:计步方法有两种,一种是采用CMPedometer获取手机计步器数据,另一种是采用HealthKit框架从手机健康App中获取计步数据。 第一种使用:CMPedometer类来获取步数 使用CMPedometer类来获取步数和距离 使用时需要导入 #import <CoreMotion/CoreMot
阅读全文
摘要:xcode连接手机提示Errors were encountered while preparing your device for development. Please check the Devices and Simulators Window. 解决方法:重启手机就可以了,还不行的话,在设
阅读全文
摘要:获取Wi-Fi信息(名称、Mac 地址、信号强度) #import <SystemConfiguration/SystemConfiguration.h> #import <SystemConfiguration/CaptiveNetwork.h> -(NSString *)getWifiName
阅读全文