swift, write code for ios 7 and 8

后端 未结 5 761
悲&欢浪女
悲&欢浪女 2020-12-30 03:23

i got an test app I\'m writing with Swift, I want to target iOS 7. But enable local notification I need to add

application.registerUserNotificationSettings(         


        
5条回答
  •  庸人自扰
    2020-12-30 03:34

    I ran into a similar issue, so for anyone having this, here is another possible solution:

    If you go to your Target > General > Linked Frameworks and Libraries, you should see UIKit (if not, add it). Make sure it says "Optional" instead of "Required" next to it...

提交回复
热议问题