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.
새로 시도해본 내용
navigation bar에 UISearchController 구현하기
검색 기능, 스코프 바 선택 시 필터링
UISearchResultsUpdating 프로토콜의
updateSearchResults메서드를 통해 검색 바 변화를 감지해 검색 결과가 업데이트되도록 했습니다.selectedScopeButtonIndexDidChange메서드도 구현하였으나, scope 버튼의 변화를 searchBar의 프로퍼티만으로도 감지할 수 있었기 때문에 사용하지 않았습니다.텍스트 입력 시 해당 단어(소문자로 변환)가 포함된 데이터가 있는지, 스코프 변경 시 해당 스코프 명의 카테고리인 데이터가 있는지 검사하고 데이터 모델을 변경합니다.
데이터 모델의 변경사항을 반영하기 위해 테이블 뷰의
performBatchUpdates,reloadSections메서드를 사용했습니다.performBatchUpdates,reloadSections를 사용했습니다.간접 세그웨이로 화면 전환하기
@IBOutlet으로 스토리보드와 연결된 프로퍼티들은 화면 전환 전에는 접근이 불가능했기 때문에, 모델 객체(Candy)를 통해 넘겨줘야 했습니다.하면서 알아낸 내용
navigationController.navigationItem으로 접근하면 안되는 이유
상태바 색 변경하기
아쉬웠던 점