简体   繁体   English

UITableView简单的问题?

[英]UITableView simple question?

我在其中一个视图上有一个UITableView,所以问题是当用户选择表的一行时,该行变为蓝色,并且视图由UINavigationController推送,当我返回主视图时,该行仍然带有蓝色如何使行看起来正常,没有背景色?

You can deselect the row, best is to do it when you push the next view: 您可以取消选择该行,最好是在按下下一个视图时执行此操作:

[tableView deselectRowAtIndexPath:indexPath animated:NO]; [tableView deselectRowAtIndexPath:indexPath animation:NO];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM