创建TableView的navigationItem的Text 左右Button
- (void)customizeNavigationBarContent
{
//titleView
UILabel *labelTitle = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 40)];
labelTitle.text = @"添加联系人";
labelTitle.textColor = [UIColor whiteColor];
labelTitle.textAlignment = NSTextAlignmentCenter;
self.navigationItem.titleView = labelTitle;
RELEASE_SAFE(labelTitle);
//leftBar
UIBarButtonItem *barLeft = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"clsose"] style:(UIBarButtonItemStylePlain) target:self action:@selector(handleBack:)];
self.navigationItem.leftBarButtonItem = barLeft;
RELEASE_SAFE(barLeft);