1 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 2 { 3 [tableView deselectRowAtIndexPath:indexPath animated:YES]; 4 // 不加此句時,在二級欄目點擊返回時,此行會由選中狀態慢慢變成非選中狀態。 5 // 加上此句,返回時直接就是非選中狀態。 6 }
1 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 2 { 3 [tableView deselectRowAtIndexPath:indexPath animated:YES]; 4 // 不加此句時,在二級欄目點擊返回時,此行會由選中狀態慢慢變成非選中狀態。 5 // 加上此句,返回時直接就是非選中狀態。 6 }
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。