【问题标题】:iOS - local notification - custom design to showiOS - 本地通知 - 要显示的自定义设计
【发布时间】:2012-10-10 06:30:08
【问题描述】:

如何在本地通知中显示自定义设计(显示图像)?

【问题讨论】:

  • 你不能,除非你越狱。这是一个选择吗?
  • 是什么意思?如果我有越狱手机,那么有可能否则没有?我说的对吗?
  • 没错,普拉蒂克。

标签: ios jailbreak


【解决方案1】:

对于 iOS,请查看 UILocalNotification

UILocalNotification *localNotif = [[UILocalNotification alloc] init];
if (localNotif == nil) return;

localNotif.fireDate = someDate;
localNotif.timeZone = [NSTimeZone defaultTimeZone];

localNotif.alertBody = @"This is a custom message."
localNotif.alertAction = @"View Details";

localNotif.soundName = UILocalNotificationDefaultSoundName;
localNotif.applicationIconBadgeNumber = 1;

[[UIApplication sharedApplication] scheduleLocalNotification:localNotif];
[localNotif release];

在越狱中其他明智的选择可能是。

希望这对您有所帮助。

【讨论】:

  • 越狱手机如何自定义?
  • 然后选择你的Tag进行越狱,有越狱经验的人会帮你的。 :)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2017-05-04
  • 2016-10-26
  • 1970-01-01
  • 1970-01-01
  • 2018-04-30
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多