Extend UILocalNotification

前端 未结 1 410
温柔的废话
温柔的废话 2021-01-19 19:15

I beginner in iOS. I try extend UILocalNotification. My class below.

@interface FSCustomNatification : UILocalNotification

typedef enum {
    FSCustomNatifi         


        
1条回答
  •  庸人自扰
    2021-01-19 19:55

    By the looks of your error message UILocalNotification is part of a class cluster. The docs don't say (that I can see quickly) but it seems unlikely that you should subclass UILocalNotification.

    Instead, you should make use of the userInfo provided by UILocalNotification to add any extra information you want to be available when the notification fires.

    0 讨论(0)
提交回复
热议问题