![](https://i.imgur.com/borv4WG.png) ![](https://i.imgur.com/IuUAZEy.png) 1. 컬렉션뷰와 테이블뷰의 차이점이 무엇인가 - 테이블뷰는 수직 스크롤만 가능함, 컬렉션뷰는 수직,수평 전부 가능 - Layout 객체가 있다. - 이름이 다름. - 컬렉션뷰는 셀 뿐만 아니라 row도 마음대로 구성 가능하다. - 다양한 모습으로 커스터마이징 할 수 있다!!! - 디자인이 바뀔 수 있다면 컬렉션 뷰를 사용하는게 좋다. - 간단함의 기준: text? - Prefer displaying text in a list or table. A table can include any type of content, but the row-based format is especially well suited to making text easy to scan and read. If you have items that vary widely in size — or you need to display a large number of images — consider using a collection instead. - ![](https://i.imgur.com/HAxIBJQ.png) 2. 각 앱의 화면을 테이블뷰로 구현하는 것이 좋을지, 컬렉션뷰로 구현하는 것이 좋을지 그 이유에 대해 의논해봅시다 - 페이스북 - 타임라인 <img src="https://i.imgur.com/mMOMkyu.jpg" width="300px"/> - 테이블뷰로 구현하라고 기획자나 디자이너가 말하면 퇴사할 것 같다. - 인스타그램 - 타임라인 <img src="https://i.imgur.com/Hotypff.jpg" width="300px"/> - 테이블뷰로 구현하라고 그러면 이직준비한다. - 미리 알림 앱 - 메인화면 <img src="https://i.imgur.com/OSORt3d.png" width ="300px"/> - 컬렉션뷰로 구성함이 적절할 것 같다. - 미리 알림 목록화면 <img src="https://i.imgur.com/iX2Jp5p.png" width ="300px"/> - 구성이 단순하므로 테이블뷰로 구성하는 것이 좋겠다. - iPhone App Store의 투데이 화면 <img src="https://i.imgur.com/63Ea6LA.jpg" width ="300px"/> - 열이 하나 뿐이므로 테이블뷰의 셀을 커스터마이징하면 가능하지 않을까? - 시계 앱의 알람 목록화면 <img src="https://i.imgur.com/OfUfZyb.jpg" width ="300px"/> - 광기의 시계 알람앱은 테이블 뷰가 적절하지 않을까? # Reference - https://nareunhagae.tistory.com/19 - https://engineering.linecorp.com/ko/blog/ios-refactoring-uicollectionview-1/ - https://labs.brandi.co.kr/2018/05/02/kimjh.html - https://github.com/lunchScreen/Interview_Questions/issues/25 - https://velog.io/@leeyoungwoozz/iOS-UICollectionView-vs-UITableView