有没有办法从Apple Watch启动iOS应用程序?
编辑: - 尝试使用下面的两个API,但都不起作用:-
Apple Watch代码
在interfaceController.m中调用
Apple Watch代码
在interfaceController.m中调用
+ (BOOL)openParentApplication:(NSDictionary *)userInfo reply:(void(^)(NSDictionary *replyInfo, NSError *error)) reply; // launches containing iOS application on the phone. userInfo must be non-nil
iOS 代码
在 Appdelegate.m 中调用
- (void) application:(UIApplication *) application handleWatchKitExtensionRequest:(NSDictionary *)userInfo reply:(void (^)(NSDictionary *))reply