how to use UILocationNotification in iPad?
<p>In my universal application I m using the below code for UILocalNotification</p>

<p>NSCalendar *calendar = [NSCalendar autoupdatingCurrentCalendar];</p>

<pre><code>    // Get the current date
    NSDate *pickerDate = [self.datePicker date];

    // Break the date up into components
    NSDateComponents *dateComponents = [calendar components:( NSYearCalendarUnit | NSMonthCalendarUnit |  NSDayCalendarUnit ) 
                                                   fromDate:pickerDate];
    NSDateComponents *timeComponents = [calendar components:( NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit ) 
                                                   fromDate:pickerDate];

    // Set up the fire time
    NSDateComponents *dateComps = [[NSDateComponents alloc] init];
    [dateComps setDay:[dateComponents day]];
    [dateComps setMonth:[dateComponents month]];
    [dateComps setYear:[dateComponents year]];
    [dateComps setHour:[timeComponents hour]];
    // Notification will fire in one minute
    [dateComps setMinute:[timeComponents minute]];
    [dateComps setSecond:[timeComponents second]];
    NSDate *itemDate = [calendar dateFromComponents:dateComps];
    [dateComps release];

    UILocalNotification *localNotif = [[UILocalNotification alloc] init];
    if (localNotif == nil)
        return;
    localNotif.fireDate = itemDate;
    localNotif.timeZone = [NSTimeZone defaultTimeZone];

    // Notification details
    NSString *str = [txtfield_MyPills.text stringByAppendingString:@" "];
    NSString *str_Dosage = [txtfield_Dosage.text stringByAppendingString:@" "];
    NSString *str_Frequency = [txtfield_Frequency.text stringByAppendingString:@" "];
    NSString *str1 = [str stringByAppendingString:str_Dosage];
    NSString *strResult = [str1  stringByAppendingString:str_Frequency];
    localNotif.alertBody =strResult;;// [txtfield_MyPills text];//[eventText text];
    // Set the action button
    localNotif.alertAction = @"View";


    localNotif.soundName = UILocalNotificationDefaultSoundName;
    localNotif.applicationIconBadgeNumber = 1;

    // Specify custom data for the notification
    NSDictionary *infoDict = [NSDictionary dictionaryWithObject:@"someValue" forKey:@"someKey"];
    localNotif.userInfo = infoDict;

    // Schedule the notification
    [[UIApplication sharedApplication] scheduleLocalNotification:localNotif];
    [localNotif release];
</code></pre>

<p>Its workin fine in iphone but if I run my application for iPad it shows that UilOcation is undeclared?</p>

<p>Please help me out and If u have sample code for UILocalNotification for iPad please give link for that</p>

<p>Thanks in Advance</p>
