我正在创建这样的本地通知:
UILocalNotification * notification = [[UILocalNotification alloc] init];
notification.alertBody = @"Alert body";
notification.alertAction = @"Yes";
notification.fireDate = [NSDate date];
[[UIApplication sharedApplication] presentLocalNotificationNow:notification];
如果在手机被锁定时加注,则只有“滑动解锁”滑块之前显示的短信。我知道可以显示一些带警报的图标。我的应用程序的图标大小为57 x 57。 有任何建议怎么做?
答案 0 :(得分:1)
请仔细检查你是否真的为你的应用程序设置了完整的图标。
这是通用应用程序的完整图标集列表:
- 1024 by 1024 (Retina iTunes artwork)
- 512 by 512 (iTunes artwork)
- 144 by 144 (Retina iPad)
- 114 by 114 (Retina iPhone)
- 96 by 96 (Retina iPad Spotlight)
- 72 by 72 (iPad icon)
- 58 by 58 (Retina iPhone Spotlight)
- 57 by 57 (iPhone icon)
- 48 by 48 (iPad Spotlight)
- 29 by 29 (iPhone Spotlight)