Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while adding section header for UITableView. #11

Open
chintanramani36 opened this issue Apr 17, 2015 · 3 comments
Open

Issue while adding section header for UITableView. #11

chintanramani36 opened this issue Apr 17, 2015 · 3 comments

Comments

@chintanramani36
Copy link

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

@JoeFryer
Copy link
Owner

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

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

@chintanramani36
Copy link
Author

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

@JoeFryer
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants