UIApplication *application = [UIApplication sharedApplication]; UILocalNotification * notification = [[UILocalNotification alloc] init]; notification.alertBody = str; [application presentLocalNotificationNow:notification]; 後續再補充