我正在使用RubyMotion和ProMotion gem开发iOS应用程序.如何使用ProMotion创建自定义表格单元格?如果我使用内置的表格屏幕,我只能使用默认的iOS样式,这不是很有用.
我添加了这个在不使用ProMotion时工作的功能.但是,当我在ProMotion屏幕上使用它时,它不会触发:
def tableView(tableView, cellForRowAtIndexPath:indexPath)
...
end
Run Code Online (Sandbox Code Playgroud)
Promotion有自己的机制来创建表格单元格.
你读过这个吗?https://github.com/clearsightstudio/ProMotion/wiki/API-Reference:-ProMotion::TableScreen#table_data
你应该能够做你需要的:-)
编辑:
这是一个自定义UITableView颜色以及UITableViewCells的示例.
https://gist.github.com/Arkan/5662905
| 归档时间: |
|
| 查看次数: |
1928 次 |
| 最近记录: |