Setting the badgeValue in ToolbarItem in ViewController file.
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