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

Your code has a bug when add a section view to tableView #34

Open
zhaishuai opened this issue Apr 12, 2016 · 0 comments
Open

Your code has a bug when add a section view to tableView #34

zhaishuai opened this issue Apr 12, 2016 · 0 comments

Comments

@zhaishuai
Copy link

Add this code to your viewController

  • (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    return 50;
    }
  • (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 360, 50)];
    view.backgroundColor = [UIColor redColor];
    return view;
    }
    You will find the bug,I hope you can fix it! thanks
    simulator screen shot apr 12 2016 4 57 59 pm
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

1 participant