NSDate *date = [NSDate dateWithTimeIntervalSinceNow:10];
UILocalNotification *localNotification = [[UILocalNotification alloc]init];
localNotification.fireDate = date;
localNotification.timeZone = [NSTimeZone localTimeZone];
localNotification.alertBody = @"2014年到了, 上有钱!";
localNotification.soundName = UILocalNotificationDefaultSoundName;
//iOS8 后需要争取用户的请求才可以进行消息推送
UIUserNotificationSettings *setting=[UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert categories:nil];
[[UIApplication sharedApplication]registerUserNotificationSettings:setting];
[[UIApplication sharedApplication]scheduleLocalNotification:localNotification];