UINavigationControll采用pushViewController后如何去掉左边的返回按钮

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

或者self.navigationItem.hidesBackButton = YES;前者在主视图中,后者在子视图中用

你可能感兴趣的:(UINavigationControll采用pushViewController后如何去掉左边的返回按钮)