[PAKA] step2 : 기능 보완 및 코드 리팩토링 #2
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
스텝별 작업목록
학습키워드
고민과 해결
section 구현
step1
.grouped를 설정해 견본과 같은 레이아웃을 완성할 수 있었습니다.step2
테이블뷰 높이 이미지에 맞게 설정
step1
step2
프로필 셀 라벨 텍스트 2줄 만들기
step1
step2
.subtitle할당 후cellForRowAt에서 셀 판별 후 subtitle를 할당해주었습니다.셀 이미지 공백 시 처리 (step2에서 개선 예정)
step1
step2
코드 리팩토링 (step2에서 반영 예정)
step1
step2
레퍼런스 코드 의문점🤔
해결Q : Specs.swift에서 Color 구조체는 왜 정의한걸까? tint 하나를 정의하기 위해서?
Q : FBMeBaseViewController - FBMeViewController 상속구조로 만든걸까?
Q : view인 customCell에서 극도로 코드를 절제하고 컨트롤러에서 구현하고 있는데, 왜 그렇게 한 걸까?
Q : 테이블뷰 프로토콜 메서드 heightForRowAt은 왜 굳이 구현한건지? 높이를 지정해주지 않아도 그림 너비로 인해 저절로 조절됨..