自定义样式到ProMotion表格单元格

Jon*_*ark 2 rubymotion

我正在使用RubyMotion和ProMotion gem开发iOS应用程序.如何使用ProMotion创建自定义表格单元格?如果我使用内置的表格屏幕,我只能使用默认的iOS样式,这不是很有用.

我添加了这个在不使用ProMotion时工作的功能.但是,当我在ProMotion屏幕上使用它时,它不会触发:

def tableView(tableView, cellForRowAtIndexPath:indexPath)

 ...

end
Run Code Online (Sandbox Code Playgroud)

Ark*_*kan 8

Promotion有自己的机制来创建表格单元格.

你读过这个吗?https://github.com/clearsightstudio/ProMotion/wiki/API-Reference:-ProMotion::TableScreen#table_data

你应该能够做你需要的:-)

编辑:

这是一个自定义UITableView颜色以及UITableViewCells的示例.

https://gist.github.com/Arkan/5662905

  • 我在这里分享了Arkan的要点https://gist.github.com/AndrewGertig/6038283并添加了通过单步进入ProMotion流并添加到单元格来真正定制UITableViewCell的功能. (2认同)