问题描述
我只是想知道,如果applicationIconBadgeNumber在iso 5中已经更改了?
i was just wondering, if that the applicationIconBadgeNumber have been changed in iso 5 ?
cus当我运行我的应用程序在数字工作正常,但如果在我的iPhone上运行它不显示它?
cus when i run my apps in the sim the number works fine, but if run it on my iPhone it´s not showing it ?
我没有改变我在iOS 4.3中工作的代码。
i haven't changed my code that was working in iOS 4.3.
int a = [[[UIApplication sharedApplication] scheduledLocalNotifications] count];
application.applicationIconBadgeNumber = a ;
已在google整天.....
been on google all day .....
希望您可以帮助
推荐答案
很有可能是因为您的应用程式的徽章应用程式图示在新的通知中心。
Most likely because the "Badge App Icon" setting for your app is not turned on in the new Notification Center.
转到设置> 通知。在通知中心部分或不在通知中心部分找到您的应用程序,然后点按。然后打开徽章应用程序图标设置。 p / s:如果您的应用程序不在通知中心(即通知中心=关闭);徽章图标设置仍然生效。
Go to Settings > Notifications. Find your app either in "In Notification Center" section or "Not In Notification Center" section, and tap on it. Then turn on the "Badge App Icon" setting. p/s: it doesn't matter if you app is not in notification center (i.e. Notification Center = OFF); the badge icon setting does take effect nevertheless.
这篇关于应用程序图标徽章编号在ios5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!