我该如何自定义UILocalNotification
,以便它可以采用两个整数变量。我试图继承UILocalNotificaion
一个类,但是当我访问我添加的两个整数之一时它崩溃了。
@interface AHNotification : UILocalNotification {
@public
int AllIndex;
int Index;
}
@property int AllIndex;
@property int Index;
@end
@implementation AHNotification
@synthesize AllIndex,Index;
-(AHNotification*) init{
[super init];
return self;
}
@end