iOS
[iOS] UITableView's Header/FooterView is following scroll(테이블 뷰 헤더/푸터가 스크롤을 따라와서 플로팅 될 때)
나무는tree
2021. 3. 4. 17:37
Header(최근 검색어 Label)
Footer(전체삭제, 최근 검색 닫기 Button)
스크롤을 하게 되면 저것들이 따라온다...
해결방법
1. StoryBoard or Nib
테이블 뷰의 Inspector에서 Style을 Plain에서 Group으로 변경해준다
더이상 따라오지 않는 것을 볼 수 있다
2. Frame 사용
//Frame은 임시
myTableView = UITableView(frame: .zero, style: .grouped)
해결!