Skip to content

Instantly share code, notes, and snippets.

@EkkoG
Last active August 23, 2016 16:21
Show Gist options
  • Save EkkoG/e2ead88c443d5038daa1fb158eaf9b7d to your computer and use it in GitHub Desktop.
Save EkkoG/e2ead88c443d5038daa1fb158eaf9b7d to your computer and use it in GitHub Desktop.
CPYCustomTableHeadView *head = [[CPYCustomTableHeadView alloc] init];
// 绑定数据
head.data = data;
// 告诉布局系统需要马上布局
[head setNeedsLayout];
[head layoutIfNeeded];
self.tableView.tableHeaderView = head;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment