문제

I am testing applications on device, I used bundle identifier "mycompany.app" and after selecting proper code signing i am able to run the application on device(i.e my iPhone). Now after successfully run this application I deleted that and used the same bundleId and provisioning to test other application which is of local notifications. so it start showing the badge number on the application Icon whenever the local notification generated. Now again I deleted this application and try running my previous application with same bundle but it is showing the badge Number (ie 1) on application Icon even though I have not added any code for showing the badge Number to this application. How to remove these badge?

도움이 되었습니까?

해결책

Hi please use following code in

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

function:-

[UIApplication sharedApplication].applicationIconBadgeNumber = 0;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top