UILocalNotification fireDate

Discussion in 'iOS Programming' started by HarryWorksInc, Jul 15, 2010.

  1. HarryWorksInc
    Expand Collapse
    macrumors regular

    Joined:
    Feb 21, 2010
    #1
    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
     
  2. robbieduncan
    Expand Collapse
    Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Create an NSDate. Really does not seem that hard. If you have a detailed, specific issue then perhaps more help can be given.
     

Share This Page