Question

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?

Was it helpful?

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!

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top