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