【发布时间】:2013-08-20 23:49:51
【问题描述】:
如果我需要显示所有正文,如何制作 UILocal 通知
localNotif.fireDate = fireDate;
localNotif.alertBody = [NSString stringWithFormat:NSLocalizedString(@"%@", nil),
strMessage];
localNotif.alertAction = NSLocalizedString(@"View Details", nil);
localNotif.soundName = UILocalNotificationDefaultSoundName;
localNotif.applicationIconBadgeNumber = 1;
NSDictionary *infoDict = [NSDictionary dictionaryWithObject:[NSString stringWithFormat:@"Happy_%@",strMessage] forKey:ToDoItemKey];
localNotif.userInfo = infoDict;
localNotif.applicationIconBadgeNumber = localNotif.applicationIconBadgeNumber+1;
[[UIApplication sharedApplication] scheduleLocalNotification:localNotif];
这个问题
【问题讨论】:
-
@bpolat 这不起作用,因为上图的 alertView 显示在锁屏/主屏幕上
标签: iphone uialertview uilocalnotification