Sea*_*ean 16 ios ios8 healthkit
我正在使用HealthKit来读取某些类型的信息.我特别不要求写功能.当尝试检测用户是否允许读取某个健康类型时,会出现此问题.
我相信这样做的目的是使用HKHealthStore的authorizationStatusForType方法,但这只是被拒绝或未知.它只返回授权写入类型.有没有人找到一种方法来使用这种方法阅读或另一种解决方法?
HKQuantityType *stepsType = [HKQuantityType quantityTypeForIdentifier:HKQuantityTypeIdentifierHeight];
HKAuthorizationStatus status = [self.healthStore authorizationStatusForType:stepsType];
Run Code Online (Sandbox Code Playgroud)
jru*_*ing 15
出于隐私原因,您无法查看应用程序对特定类型的读取授权状态.
| 归档时间: |
|
| 查看次数: |
3774 次 |
| 最近记录: |