We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
헤더를 UITableViewCell클래스로 구현하고, cell을 deque하는 tableView.dequeueReusableCell(withIdentifier: , for: )로 헤더를 불러올 경우, 계속 셀을 재사용하겠다는 용도이기때문에 헤더뷰 구현이 제대로 되지않음.
tableView.dequeueReusableCell(withIdentifier: , for: )
임시방편으로 헤더의 contentView프로퍼티를 리턴하여 사용하였으나, 좋은 방법이 아니어서 xib로 뷰를 만들고 UIView를 리턴하는 방식으로 사용하도록 변경
이전 코드
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { guard let branchData = branchData else { return UIView() } let view = tableView.dequeueReusableCell(withIdentifier: "headerCell") as! HolidayHeaderCell let contentView = view.contentView return contentView }
The text was updated successfully, but these errors were encountered:
Refactor: Add xib and DetailHeaderView #42
a9cea2b
Refactor: Implement headerView by xib #42
2cb9c1c
- Implement HeaderView for tableView in DetailViewController - Using xib file and UITableViewHeaderFooterView class
Refactor: Modify reusing class for header #42
3808be2
- Modify to set a tableview header: using UITableViewHeaderFooterView,xib file
jinios
No branches or pull requests
헤더를 UITableViewCell클래스로 구현하고, cell을 deque하는
tableView.dequeueReusableCell(withIdentifier: , for: )
로 헤더를 불러올 경우, 계속 셀을 재사용하겠다는 용도이기때문에 헤더뷰 구현이 제대로 되지않음.임시방편으로 헤더의 contentView프로퍼티를 리턴하여 사용하였으나, 좋은 방법이 아니어서 xib로 뷰를 만들고 UIView를 리턴하는 방식으로 사용하도록 변경
이전 코드
The text was updated successfully, but these errors were encountered: