I am trying to implement local notifications in iOS10, and so far it is not working.
I get this warning around my delegate methods:
Instance method 'userNotificationCenter(_:didReceive:withCompletionHandler:)'
nearly matches optional requirement 'userNotificationCenter(_:didReceive:withCompletionHandler:)'
of protocol 'UNUserNotificationCenterDelegate'
As solution xcode suggests two options: 1.make it private 2.make it @nonobjc
Why is that? Why do I need to do it? And most important, how to make these methods work?