0

handleActionWithIdentifier:forLocalNotification:的 文档中 , 此 方法 被 声明为 WatchOS 2.0已弃用

App Programming Guide for watchOS我在通知部分寻找,他们建议使用UserNotifications框架的UNUserNotificationCenter。但是这个框架确实需要 WatchOS >= 3.0

我的应用如何适应 WatchOS 2.0 用户?

4

1 回答 1

0

对于 WatchOS 2.0,您必须实现已弃用的方法handleActionWithIdentifier:forLocalNotification:UserNotifications随着框架的引入,该方法已被弃用。由于此框架在 3.0 之前的 WatchOS 上不可用,因此不推荐使用的方法是旧版本的方法。

于 2017-02-17T13:15:48.503 回答