Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there any way to GET the application icon badge number?

While it is not possible to access the notifications - just to make sure is there any way to GET the application icon badge number?

Setting is like this

[[UIApplication sharedApplication] setApplicationIconBadgeNumber:n];

All I need is a getApplicationIconBadgeNumber - is there really no access to the current number from within the app?

Many thanks!

like image 839
user387184 Avatar asked Aug 19 '12 20:08

user387184


1 Answers

Just use the applicationIconBadgeNumber property of UIApplication.

The getter is the same as the property name while the setter has the prefix 'set'.

like image 191
Felix Avatar answered Nov 15 '22 17:11

Felix