Properties 为属性添加子类化UILocalNotification
我试图取消带有特定标记号的本地通知。我最喜欢使用标记号进行比较逻辑 因此,我将UILocalNotification子类化,并添加属性NSInteger标记。然后使用子类实例安排localNotification CustomNotification*customNoti=[[CustomNotification alloc]init]Properties 为属性添加子类化UILocalNotification,properties,uilocalnotification,Properties,Uilocalnotification,我试图取消带有特定标记号的本地通知。我最喜欢使用标记号进行比较逻辑 因此,我将UILocalNotification子类化,并添加属性NSInteger标记。然后使用子类实例安排localNotification CustomNotification*customNoti=[[CustomNotification alloc]init] customNoti.fireDate=myDate customNoti.timeZone=[NSTimeZone defaultTimeZone] cust
customNoti.fireDate=myDate
customNoti.timeZone=[NSTimeZone defaultTimeZone]
customNoti.tag=self.tag;//崩溃
//错误:-[UIConcreteLocalNotification setTag:]:发送到实例0x75a3630的选择器无法识别 这是CustomNotification.h文件
#导入
@接口CustomNotification:UILocalNotification
@属性(非原子,赋值)NSInteger标签@结束 为什么会崩溃并显示“无法识别的选择器”消息?UILocalNotification类特别吗?我找不到任何丢失的代码