문제

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?

도움이 되었습니까?

해결책

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!

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top