如何使用healthkit解决此错误?
我正在我的 ios Swift 应用程序中添加 healthkit 的代码,但我收到了一个错误... /* Ask for permission to access the health store */ override func viewDidAppear(animated: Bool) { super.viewDidAppear(animated) if HKHealthStore.isHealthDataAvailable(){ healthStore.requestAuthorizationToShareTypes(typesToShare, readTypes: typesToRead, completion: {(succeeded: Bool, error: NSError!) in if succeeded && error == nil{ println("Successfully received autho
1272 2022-07-17
编程技术问答社区