Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIButton *logoButton = [[UIButton alloc] init];
- logoButton.frame = CGRectMake(12, 6, 72, 33);
- logoButton.opaque = NO;
- logoButton.autoresizingMask = UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleBottomMargin;
- logoButton.imageView.image = [UIImage imageNamed:@"banner-pa.jpg"];
- UIBarButtonItem *logoBar = [[UIBarButtonItem alloc] initWithCustomView:logoButton];
- self.navigationItem.rightBarButtonItem = logoBar;
- [logoBar release];
- [logoButton release];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement