Search code examples
iosxcodexamarin.iospixate

How to change cell height in UITableView and Pixate


Im trying to figure out how to change the cell height in a UITableView using Pixate. According to the pixate documentation there is a row-height

I've tried:

setting the UITableView styleId to myTable and:

#myTable {
   row-height: 50px;
}

but that doesn't seem to do the trick.

Am I reading the docs wrong?


Solution

  • I would change the height row with the method tableView:heightForRowAtIndexPath: and other kind of styling with pixate engine. Also you should be careful with the IB in UITableViewCell and UITableView row height. I think this post could be useful too: Styling with Engine. It has an interesting example (including source code).

    Happy coding!