1

我正在为 Apple Watch (OS-1) 工作并使用 iPhone 应用程序中的网络服务。

当 iPhone 设备被锁定时,我发现访问 iPhone 应用程序有困难。有没有办法在锁定时访问它?

4

1 回答 1

0

是的,当然工作。

使用它,您可以拨打电话应用程序

[WKInterfaceController openParentApplication:callDict reply:^(NSDictionary *replyInfo, NSError *error) {


    }];

在 appDelegate 中你可以处理你的东西。

- (void)application:(UIApplication *)application handleWatchKitExtensionRequest:(NSDictionary *)userInfo reply:(void(^)(NSDictionary *replyInfo))reply {
  }

在手表应用程序中拨打电话的另一件事是用于即时通话的MMWormhole 。

于 2015-07-10T10:28:04.323 回答