Objective-C Tips & Trick - Prioregroup.com
[Objective-C] Icon with symbol of the beta version
       
back

//
// Icon with symbol of the beta version instead of the number of badges.
//
// The first thing to note is that the method uses a private API
// so you don't want the code included in your App Store build.
// You can use conditional compilation to achieve this.
//
// original post from @sgaw
//
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
#ifdef DEBUG
    [[UIApplication sharedApplication] performSelector:@selector(setApplicationBadgeString:) withObject:@"β"];
#endif

...






Copyright © 1996-2018 Centro Studi Informatica di Danilo Priore. All rights reserved. P.I.10149810581.
prioregroup.com