UINavigationControll中自定义返回按钮

前者在主视图中:

UIBarButtonItem *temporaryBarButtonItem = [[UIBarButtonItem alloc] init];
    temporaryBarButtonItem.title = @"Back";
     self.navigationItem.backBarButtonItem = temporaryBarButtonItem;
     [temporaryBarButtonItem release];

 

后者在子视图中:

self.navigationItem.hidesBackButton = YES;//隐藏返回按钮


你可能感兴趣的:(自定义)