equal
deleted
inserted
replaced
143 } |
143 } |
144 |
144 |
145 -(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section { |
145 -(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section { |
146 if (section == 2) { |
146 if (section == 2) { |
147 |
147 |
148 UIView *footer = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.tableView.rowHeight)]; |
148 UIView *footer = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.height * 70 / 100, self.tableView.rowHeight)]; |
149 footer.autoresizingMask = UIViewAutoresizingFlexibleWidth; |
149 footer.autoresizingMask = UIViewAutoresizingFlexibleWidth; |
150 |
150 |
151 UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(0, 17, self.view.frame.size.width, self.tableView.rowHeight)]; |
151 UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(0, 17, self.view.frame.size.height * 70 / 100, self.tableView.rowHeight)]; |
152 button.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin; |
152 button.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin; |
153 [button setTitle:NSLocalizedString(@"Done",@"") forState:UIControlStateNormal]; |
153 [button setTitle:NSLocalizedString(@"Done",@"") forState:UIControlStateNormal]; |
154 [button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; |
154 [button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; |
155 [button setTitleColor:[UIColor grayColor] forState:UIControlStateHighlighted]; |
155 [button setTitleColor:[UIColor grayColor] forState:UIControlStateHighlighted]; |
156 |
156 |