[IOS] '네이버 검색 API'로 영화 검색 앱 만들기 - Ver.2

East Silver·2022년 1월 30일
0

이전 영화 검색 앱프로젝트를 개선된 방향으로 다시 만들어 보려고 한다.

Goal

  • Alamofire 이용해서 API 연결
  • Nested collectionView 형태의 홈 뷰 구성
  • 저번 영화 검색 프로젝트보다 검색에 대한 버그 개선
  • 최근 검색어 보여주기

Skills

  • Alamofire
  • KingFisher
  • Realm
  • Snapkit

Day 1

코드로 UI 구성 및 Snapkit

코드로 UI를 구성했다! layout constraints를 좀 더 간단히 하기위해 snapkit이라는 라이브러리를 이용 할 수 있다. 다음 프로젝트부터 제대로 이용해보고 이번에는 cell 구성에서만 살짝 적용해 보았다.

Cocoapod를 이용하지 않고 package 추가하는 방법

UICollectionViewCompositionalLayout

Day 2

UISearchController

확실히 textfiled에서 editing이 이루어 질때마다 검색해주는 방법보다 훨씬 버그가 발생하지 않고 성능이 향상되었다!

UISearchController VS UISearchBar

This is similar to asking why you should use a UINavigationController when you can add your own UINavigationBar and delegate or why use a UITabBarController when you can add your own UITabBar and delegate. It's all a matter of convenience and user interface consistency.

이 두가지의 장단점이 무엇일까 생각하다...참고링크에서 뼈 맞고 왔다..ㅎ머쓱

Alamofire

Day 3

kingfisher

캐싱

어려웠던 점 & 해결방안

개선 해야 할 점

그 외 참고 링크

https://magi82.github.io/ios-modal-presentation-style-01/

profile
IOS programmer가 되고 싶다

0개의 댓글