草庐IT

UIMutableUserNotificationAction

全部标签

ios - 使用未解析的标识符 'UIMutableUserNotificationAction'

我有一个单独的Singleton类,其中包含LocalNotification注册和Action设置代码。我得到了Useofunresolvedidentifiererror也将所有类添加到XCTest目标。 最佳答案 只需导入UIKit框架importUIKitclassViewController:UIViewController{overridefuncviewDidLoad(){super.viewDidLoad()letmutNotification=UIMutableUserNotificationAction()mut