priore

Icon with symbol of the beta version

Jun 23rd, 2013
520
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. // Icon with symbol of the beta version instead of the number of badges.
  3. //
  4. // The first thing to note is that the method uses a private API
  5. // so you don't want the code included in your App Store build.
  6. // You can use conditional compilation to achieve this.
  7. //
  8. // original post from @sgaw
  9. //
  10. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  11. {
  12. #ifdef DEBUG
  13.     [[UIApplication sharedApplication] performSelector:@selector(setApplicationBadgeString:) withObject:@"β"];
  14. #endif
  15.  
  16. ...
RAW Paste Data