The local notification service for iOS requires the use of nslocalnotification to process notifications based on time behavior. For example, the time to inform the user to learn.
There are three things to consider when using nslocalnotification:
Scheduled time: A period that specifies the date and time when the iOS system sends notifications;
Notification type: Notification type (including warning message, action button caption, application icon on badge (digital marker) and playback sound);
Custom data, local notifications can contain a dictionary type of local data.
Limits on the number of local notifications, iOS allows up to 64 recent local notifications, and local notifications exceeding the limit will be ignored by iOS.
Examples of Use:
Uilocalnotification *notification=[[uilocalnotification alloc] init];
NSDate *now=[nsdate New];
Notification.firedate=[now addtimeinterval:100];
Notification.timezone=[nstimezone Defaulttimezone];
[Email protected] "remind you to learn iOS";
[[UIApplication sharedapplication] schedulelocalnotification:notification];