ios - how do you increase the padding for a UITableView -
when increment size of uitableviewcell, section headers styling becomes messy. code using, suggested in "how set width of cell in uitableview in grouped style" , follows:
i have inherited uitableviewcell , created class:
@implementation uitableviewcellhistory { } -(bool) isipad { homecoming ui_user_interface_idiom() == uiuserinterfaceidiompad; } - (void)setframe:(cgrect)frame { if ([self isipad]) { nsinteger inset = 40; frame.origin.y += inset; frame.size.height -= 2 * inset; [super setframe:frame]; } } @end then in class table view in have used above class cell:
- (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath { if (indexpath.section == [data numberofdayswithdata]) { nsassert([data hasmore], @"how come have more sections days when more low?"); uitableviewcell *cell = [[uitableviewcellhistory alloc] initwithstyle:uitableviewcellstyledefault reuseidentifier:nil]; but when increment size of padding farther headings in tableview overlapped rows. missing something?
ios objective-c
No comments:
Post a Comment