Tutorial details

Creating An Icon Badge | App Code for Sale | Preview

Creating An Icon Badge | iOS Tutorial

How to create icon badges

Overview PAGE TOP

Reference: http://www.geekylemon.com/WEBPROTECT-xcodeiconbadge.htm

In this tutorial i will be showing you how to create icon badges

Features:

  • 1 UITextField
  • 2 Round Rect Buttons

Icon Badges are often seen when you have a notification from your app and it displays a small red circle with a number on the top right of your app icon reminding you to re-enter the app and check it out

ViewController.h PAGE TOP

@interface ViewController :UIViewController {
IBOutlet UITextField *editremind;
int reminders;
}
-(IBAction)remindbutton;
-(IBAction)resetbutton;
@end

ViewController.m PAGE TOP

@implementation ViewController
-(IBAction)remindbutton {
    [[UIApplication sharedApplication] setApplicationIconBadgeNumber:[[editremind text]intValue]];
}
-(IBAction)resetbutton {
    [[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
}
@end

Reference PAGE TOP

http://www.geekylemon.com/WEBPROTECT-xcodeiconbadge.htm

0 Comments Leave a comment

Please login in order to leave a comment.

Newest first
!

Sign-in to your Chupamobile Account.

The Easiest way to Launch your next App or Game.

Join Chupamobile and get instant access to thousands of ready made App and Game Templates.

Creating an account means you’re okay with Chupamobile’s Terms of Service and Privacy Policy.