no visible @interface for 'UIAPPLICATION.. local notification tutorial failing
<p>just learning iPhone and I'm getting the following error</p>

<pre><code>    [app scheduledLocalNotifications:notification];
</code></pre>

<p>no visible @interface for uiapplication declares the selector schedulelocalnotifications</p>

<p>can someone please help me out.  I'm sure its something simple I am just not realizing as this is my first tutorial</p>

<p>thanks</p>

<pre><code>-(IBAction)createNotification{

NSLog(@"createNotification");

NSString *dateString = dateTextField.text;
NSString *textString = textTextField.text;

NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"MM-dd-yyyy HH:mm"];
[formatter setTimeZone:[NSTimeZone timeZoneForSecondsFromGMT:-18000]];

NSDate *alertTime = [formatter dateFromString:dateString];

UIApplication* app = [UIApplication sharedApplication];

UILocalNotification *notification = [[UILocalNotification alloc] init];
if (notification) {
    notification.fireDate = alertTime;
    notification.timeZone = [NSTimeZone defaultTimeZone];
    notification.repeatInterval = 0;
    notification.alertBody = textString;

    [app scheduledLocalNotifications:notification];
    [app presentLocalNotificationNow:notification];

}
</code></pre>

<p>}</p>
