我是iOS的初学者。我尝试扩展 UILocalNotification。下面是我的课。
@interface FSCustomNatification : UILocalNotification
typedef enum {
FSCustomNatificationPay,
FSCustomNatificationWrite,
FSCustomNatificationSend
} NotificationTypeT;
@property (nonatomic, assign) NotificationTypeT typeNotificationT;
@end
#import "FSCustomNatification.h"
@implementation FSCustomNatification
@end
当我设置 typeNotificationT 属性时,我得到 -[UIConcreteLocalNotification setTypeNotificationT:]: unrecognized selector sent to instance 0x8144780。为什么?
FSCustomNatification* localNotification = [[FSCustomNatification alloc] init];
localNotification.typeNotificationT = FSCustomNatificationWrite;