Search code examples
rubymotion

Custom styling to ProMotion table cells


I am working on an iOS app using RubyMotion and the ProMotion gem. How can I create custom table cells with ProMotion? If I use the built in table screens I can only use default iOS styling which is not very helpful.

I added this function which is working when ProMotion is not being used. However, when I use this on a ProMotion screen, it's not firing:

def tableView(tableView, cellForRowAtIndexPath:indexPath)

 ...

end

Solution

  • Promotion has its own mechanism to create table cells.

    Have you read this ? https://github.com/clearsightstudio/ProMotion/wiki/API-Reference:-ProMotion::TableScreen#table_data

    You should be able to do what you need :-)

    EDIT:

    Here is an example to customize the UITableView colors as well as the UITableViewCells.

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