2016-12-01 114 views
0

React Native在他們的website 上做了一個代碼片段,您可以使用它來處理PushNotificationsIOS。問題是,它現在已經過時,UIUSerNotificationSettings在iOS 10.0中已被棄用。React Native,UIUserNotificationSettings已棄用iOS 10.0。

/Users/../ios/project/AppDelegate.m:39:87: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings 

有一個明確的建議,使用UNNotificationSettings,但我不確定如何從本地做出反應所建議的代碼重寫給定的代碼段,最好是在Objective-C和不斯威夫特。

我從來沒有真正在Xcode中工作過,所以幫助表示讚賞。

親切的問候,

馬丁

回答

相關問題