if (m_titleImage == nil) {
m_titleImage = [UIImage imageNamed:@"title_bg.png"];
}
if ([self.navigationController.navigationBar respondsToSelector:@selector(setBackgroundImage:forBarMetrics:)])
{
[self.navigationController.navigationBar setBackgroundImage:m_titleImage forBarMetrics:UIBarMetricsDefault];
}
UILabel *title = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 30)];
title.center = CGPointMake(160, title.center.y);
title.font = [UIFont systemFontOfSize:18];
title.textColor = [UIColor blackColor];
title.backgroundColor = [UIColor clearColor];
title.textAlignment = UITextAlignmentCenter;
title.text = self.title;
self.navigationItem.titleView = title;
[title release];