UINavigationBar BarButtonItem with Plain Style

Posted by choise on Stack Overflow See other posts from Stack Overflow or by choise
Published on 2010-02-27T18:21:34Z Indexed on 2010/05/24 6:31 UTC
Read the original article Hit count: 347

Hi,

i got the following code:

- (id)init {
  if (self = [super init]) {
      self.title = @"please wait";
      UIBarButtonItem *favorite = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"star.png"] style:UIBarButtonItemStylePlain target:self action:@selector(buttonFavoriteClicked:)];
      self.navigationItem.rightBarButtonItem = favorite;
  }

  return self;
}

but my button looks still like a Button with UIBarButtonItemStyleBordered alt text

is there a way to set a button with plain style at this position?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk