UITableView細節.txt

UITableView細節.txt


1)當xib使用了自動佈局,控件的frame調整便不生效。如此,要麼取消自動佈局;要麼手寫代碼;


2)當xib使用了自動佈局,cell.accessorytype不生效。取消Auto layout,採用autoresizing+autoresizingMask。


3)使用RATreeView,點擊row,分割線顯示的解決辦法。(https://github.com/Augustyniak/RATreeView/issues/28)
Add this lines


[tableView deselectRowAtIndexPath:indexPath animated:YES];
[tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];


at the begining of didSelectRowAtIndexPath method from RATreeView+TableViewDelegate
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章