Posted By

saturngod on 02/16/11


Tagged


Versions (?)

UINavigation with imageview


 / Published in: Objective C
 

URL: http://stackoverflow.com/questions/289441/uinavigationcontroller-title-can-be-some-image/428434#428434

  1. - (void)awakeFromNib {
  2.  
  3. //put logo image in the navigationBar
  4. //.png at about 35px in height
  5. UIImageView* img = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"logo.png"]];
  6. self.navigationItem.titleView = img;
  7. [img release];
  8.  
  9. }

Report this snippet  

You need to login to post a comment.