-
0 votesanswersviews
Apple观看HealthKit - 无法识别的选择器HKHealthStore startWorkoutSession:完成:
我试着通过观看OS2.0来获得心率当我尝试开始锻炼时我得到这个错误 Carleep WatchKit Extension[594:91719] -[HKHealthStore startWorkoutSession:completion:]: unrecognized selector sent to instance 0x155b40e0 我在我的项目中添加了healthkit框架 . ... -
0 votesanswersviews
在某些情况下,是否未调用WKExtensionDelegate的handleWorkoutConfiguration?
我正在使用HKHealthStore.startWatchApp从我的iPhone应用程序触发Apple Watch上的锻炼 . 根据文档,我希望最终触发我的WKExtensionDelegate的handle(_ workoutConfiguration:)方法,以便监视应用程序实际上可以调用 HKHealthStore.start(workoutSession) 开始锻炼会话 . 除以下场景外... -
0 votesanswersviews
无法将设备检测为iPad
我正在制作一个使用HealthKit的应用程序 . 该应用程序不能在iPad上运行,因此我的 viewDidLoad 方法包含if / then / else语句以向iPad用户显示警报 . 这是我的代码: if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone && SYSTEM...