Skip to content

Instantly share code, notes, and snippets.

@arzola
Created February 18, 2014 03:16
Show Gist options
  • Save arzola/9064083 to your computer and use it in GitHub Desktop.
Save arzola/9064083 to your computer and use it in GitHub Desktop.
Add background image to titleview in uinavigationbar
UIImageView *titleImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"omron_nav_bar_logo2x.png"]];
UIView *backView =[[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 26)];
titleImageView.frame = CGRectMake(25, 6,160 , 13);
[backView addSubview:titleImageView];
self.navigationItem.titleView = backView;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment