【发布时间】:2014-10-01 18:44:39
【问题描述】:
tableView 可以倒序排列吗?我搜索了很多解决方案,但没有任何效果。
效果就像whatsapp聊天。
一个普通的tableView是:
----------
label 1
----------
label 2
----------
label 3
----------
empty
----------
empty
----------
scroll direction
|
|
v
想要的结果:
----------
empty
----------
empty
----------
empty
----------
empty
----------
label 3
----------
label 2
----------
label 1
----------
scroll direction
^
|
|
感谢您的帮助
【问题讨论】:
-
cell.setTitle.text = myArray.reversed()[indexPath.row]反转你的数组就可以了。
标签: swift ios8 tableview xcode6