JDFPeekaboo icon indicating copy to clipboard operation
JDFPeekaboo copied to clipboard

Issue while adding section header for UITableView.

Open chintanramani36 opened this issue 9 years ago • 3 comments

When add Section header it will not move up with Tableview for Tabbar with Navigation bar.

chintanramani36 avatar Apr 17 '15 13:04 chintanramani36

Hey, thanks for reporting. I'll take a look.

If you could create a quick project showing the described behaviour, that would be useful.

JoeFryer avatar Apr 21 '15 11:04 JoeFryer

Please check attached screenshot. i've just download sourcecode and set section header.

-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { UIView *v = [[UIView alloc]initWithFrame:CGRectMake(0, 0, tableView.frame.size.width, 50)]; [v setBackgroundColor:[UIColor redColor]]; return v; } -(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { return 50; }

ios simulator screen shot apr 27 2015 11 43 28 pm

chintanramani36 avatar Apr 27 '15 18:04 chintanramani36

Interesting. I've had a quick look, it's not immediately obvious how to fix it. I'll look into it further when I get chance.

As a workaround, it seems to be okay for grouped table views.

JoeFryer avatar Apr 30 '15 21:04 JoeFryer