0

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?

Deekor
  • 9,144
  • 16
  • 69
  • 121

2 Answers2

1

You need to implement the

-(CGFloat)tableView:(UITableView*)tableView heightForRowAtIndexPath:(NSIndexPath*) indexPath 
{
    if ([expandedPaths containsObject:indexPath]) {
        return 80;
    } else {
        return 44;
    }
 }

method in your UITableViewDelegate.

Mingebag
  • 748
  • 2
  • 20
  • 35
1

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!

TomCobo
  • 2,886
  • 3
  • 25
  • 43