相关疑难解决方法(0)

选中时,选中的UItableViewCell保持蓝色

当用户选择UITableView行后推送视图时,该行将获得蓝色突出显示,然后出现新视图.没关系.但当我"回"时,行仍然以蓝色突出显示.这是我的didSelectRowAtIndexPath代码.

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    SettingsViewController *controller = [[SettingsViewController alloc] initWithNibName:@"SettingsView" bundle:nil];
    [[self navigationController] pushViewController:controller animated:YES];
    [controller release], controller = nil; 
}
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?

iphone objective-c uitableview uinavigationcontroller

55
推荐指数
3
解决办法
3万
查看次数