iPhone为UINavigationBar设置背景图片的方法
2010-06-19 18:36:00 来源:WEB开发网核心提示:@"title_bg.png"]; [image drawInRect:CGRectMake(0, 0,self.frame.size.width, self.frame.size.height)]; } @end/@implementation FriendsPageViewController
@"title_bg.png"]; [image drawInRect:CGRectMake(0, 0,
self.frame.size.width, self.frame.size.height)]; } @end
/////////////////////////////////////////////////////////
@implementation FriendsPageViewController // Implement viewDidLoad to
do additional setup after loading the view, typically from a nib. -
(void)viewDidLoad { self.navigationBar.tintColor = [UIColor
purpleColor]; [self initWithRootViewController:[[RegPageViewController
alloc] init]]; [super viewDidLoad]; } ......
实现的效果如下图:
转载,原文地址 http://blog.csdn.net/wave_1102/archive/2009/11/04/4768212.aspx
Tags:iPhone UINavigationBar 设置
编辑录入:coldstar [复制链接] [打 印]更多精彩
赞助商链接