我有一个UITableViewController.当我点击一个单元格,我想推一个新的视图.这样做不错,但新视图没有后退按钮.为什么是这样?
TableViewCode:
if([[NSUserDefaults standardUserDefaults] boolForKey:@"isLoggedIn"]) { UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; ProfileViewController* profileViewController = [[ProfileViewController alloc] initWithNibName:@"ProfileViewController" bundle:nil]; profileViewController.message = [NSDictionary dictionaryWithObjectsAndKeys:cell.textLabel.text,@"user_login",@"default",@"message_source",nil]; switch(indexPath.row) { case kUsernameRow: [self.navigationController pushViewController:profileViewController animated:YES]; [profileViewController release]; break; case kAboutRow: break; case kTOSRow: break; } }