Pergunta

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?

Foi útil?

Solução

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!

Outras dicas

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top