- (void)sendLocalNotification:(NSString*)msg
{
UILocalNotification *notice = [[UILocalNotification alloc] init];
notice.alertBody = msg;
notice.alertAction = Lang(@"Open", @"打开软件");
notice.soundName = UILocalNotificationDefaultSoundName;
notice.userInfo = @{@"msg":@"whatever you want"};
[[UIApplication sharedApplication] presentLocalNotificationNow:notice];
}
网友评论