Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

HarryWorksInc

macrumors regular
Original poster
Feb 21, 2010
179
0
I am having trouble scheduling a local notification, I have all of the code accept the fireDate code:
HTML:
UILocalNotification *Notification = [[UILocalNotification alloc] init];
	Notification.alertBody=[NSString stringWithFormat:@"Local Notification Test"];
    Notification.alertAction = @"Yes";
    Notification.soundName = UILocalNotificationDefaultSoundName;
    Notification.timeZone = [NSTimeZone defaultTimeZone];
	Notification.fireDate = 
    [[UIApplication sharedApplication] scheduleLocalNotification:note];
	[Notification release];

I cannot figure out how to schedule the fireDate, I have been looking over the example codes but cannot seem to get it. Could someone show me how to set the fireDate?

Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.