CSS in UITableViewCell

26 views
Skip to first unread message

tomek....@gmail.com

unread,
Aug 28, 2013, 2:13:22 AM8/28/13
to nimb...@googlegroups.com
Hi All,

I was trying to apply CSS styles to my custom UITableViewCells, with partial success.

Only place to apply styles I found is cellForRowAtIndexPath: method

    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];

    [_dom registerView:cell withCSSClass:@"sidecell"];
    [_dom registerView:cell.textLabel withCSSClass:@"sidecellText"];

This works, however:
  • last table cell did not get styling applied, 
  • when I scroll up so that first cell goes out of screen - it loses the styling too.

Can anyone hint if I am doing it right?

Regards,
Tomek
Reply all
Reply to author
Forward
0 new messages