• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Setting the badgeValue in ToolbarItem in ViewController file.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting the badgeValue in ToolbarItem in ViewController file.


  • Subject: Setting the badgeValue in ToolbarItem in ViewController file.
  • From: "Benjamin Ortuzar Seconde" <email@hidden>
  • Date: Wed, 12 Mar 2008 07:33:42 -0400

Hi guys,
Im new to Cocoa development and Obj-C development, and I need a little help
to set up the ToolbarItem property badgeValue. I was able to set the Title,
Image and ImageSelected for the ToolbarItem successfully, but for some
reason i cant see on the screen the badgeValue.

This is how i set it up in the ViewController.m file.


- (id)init

{


 if (self = [super init]) {

// Initialize your view controller.

self.title = @"ButtonLabel";

self.toolbarItem.image = [UIImage imageNamed:@"NotSelected.png"];

self.toolbarItem.selectedImage = [UIImage imageNamed:@"Selected.png"];


 self.toolbarItem.badgeValue =  @"badge";

}

return self;

}


 Any help would be appreciated.

thanks again,
ben
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Setting the badgeValue in ToolbarItem in ViewController file.
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: NSPersistentDocument Tutorial
  • Next by Date: Re: NSPersistentDocument Tutorial
  • Previous by thread: Re: NSPersistentDocument Tutorial (SOLVED)
  • Next by thread: Re: Setting the badgeValue in ToolbarItem in ViewController file.
  • Index(es):
    • Date
    • Thread