UILocalNotification crash

后端 未结 2 1187
清歌不尽
清歌不尽 2020-12-10 20:45

could you please help me ?

I\'m setting up an UILocalNotification and It crashes when I try to set its userInfo dictionary. fetchedObjects contains 88 objects.

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-10 21:34

    Sounds like there are objects in your userInfo dictionary that don't implement the NSCoding protocol. Everything in that dictionary has to be able to be written to 'disk', since your app may not be running when the notification fires. If there's something in there that can't be serialized, this is the result.

提交回复
热议问题