Created
February 18, 2014 03:16
-
-
Save arzola/9064083 to your computer and use it in GitHub Desktop.
Add background image to titleview in uinavigationbar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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