iphone - Hide footer view in UITableView -
I'm working for HideViewView . My problem is that when I click on the button, I click on a button and the button will be added as the last section and the button will also move to the newly created section and now I After updating the footer section to hide the sections. I used it in button action but it is not working. There are four solutions in my mind, Solution 1: You can set Footer / Header High via the Interface Builder under the Shape tab. Solution 3: Set content embedded property. Resolution 4: Used to implement it Below, according to your situation Set the price. 0.0 will not be accepted. Bottom value should be 1.0.
footerView.hidden = yes
tableView.sectionHeaderHeight = 0.0; TableView.sectionFooterHeight = 0.0; - (CGFloat) Table View: (UITableView *) Table High Height Fairhead Insension: (NSInteger) section {return 1.0; } - (CGFloat) Table View: (UITableView *) Table High HeightForFooter Insension: (NSInteger) section {return 1.0; } - (UIView *) Table View: (UITableView *) Table View View ForHeaderInSection: (NSInteger) section {return [[UIView alloc] initWithFrame: CGRectZero]; } - (UIView *) Table View: (UITableView *) Table View View ForFooterInSection: (NSInteger) section {return [[UIView alloc] initWithFrame: CGRectZero]; Solution 2:
self.tableView.contentInset = UIEdgeInsetsMake (-20, 0, -20, 0);
- (CGFloat) Table View: (UITableView *) Table High Height Fairhead Insension: (NSInteger) section {if (section == 0) back 6; 1.0 Return; } - (CGFloat) Table View: (UITableView *) Table heightforfooter insaction: (NSInteger) section {return 5.0; } - (UIView *) Table view: (UITableView *) Table view viewForheader Inception: (NSInteger) section {return [[UIView alloc] initWithFrame: CGRectMake (0, 0, 0, 0)]; } - (UIView *) TableView: (UITableView *) table view viewfolderfilesApplication: (NSInteger) section {return [[UIView alloc] initWithFrame: CGRectMake (0, 0, 0, 0)]; }
Comments
Post a Comment