iOS/iOS SeSAC 2기 TIL 99

공통된 xib 파일 만들기 (하나의 파일을 여러 곳에 적용)

넷플릭스 UI를 떠올렸을 때, 영화 포스터 (CardView)가 테이블 뷰 안에 컬렉션 뷰 안에 여러개가 적용됨. 위에 반복되는 검정 CardView를 만드는 방법은 ??? 아래와 같다. /* Xml Interface Builder 1. UIView Custom class 2. File's owner -> 자유도 , 확장성 더 높다 */ 1번이 원래 하던건데 이거 class연결 끊고 여기선 2번으로 가자! //변경되지 않는 UI override func awakeFromNib() { super.awakeFromNib() }

iOS swift] tableView section 이름 붙이기 - titleForHeaderInSection

iOS swift] tableView section 이름 붙이기 (섹션마다 title이 있는 tableView) 키워드: titleForHeaderInSection https://calmone.tistory.com/entry/iOS-UIKit-in-Swift-4-section%EC%9C%BC%EB%A1%9C-%EB%82%98%EB%88%84%EC%96%B4%EC%A7%84-UITableView-%EB%A7%8C%EB%93%A4%EA%B8%B0 [iOS UIKit in Swift 4] section으로 나누어진 UITableView 만들기 section으로 나누어진 UITableView 만들기 UITableView를 2개의 section으로 나누어 iOS와 AOS의 버전을 나열해봤습니다. section의 ..

iOS swift 로딩중 progress view만들기 - JGProgressHUD github

i0OS swift progress view만들기 - JGProgressHUD github https://github.com/JonasGessner/JGProgressHUD GitHub - JonasGessner/JGProgressHUD: An elegant and simple progress HUD for iOS and tvOS, compatible with Swift and ObjC. An elegant and simple progress HUD for iOS and tvOS, compatible with Swift and ObjC. - GitHub - JonasGessner/JGProgressHUD: An elegant and simple progress HUD for iOS and tvOS, co..

TMDB Project 과제 8.4 수업 중 피드백

1. 이미지 안 나옴 string -> url -> imageview로 사진을 보여줌 여기서 url -> imageview로 바꿔주는거 : 네트워크 통신. => 이걸 쉽게 해결해주는 라이브러리: kingfisher url 매개변수를 kingfisher에 넣어주어야 함. 1-2. url 고유한 형태가 맞는가에 대한 검증 TMDB 이미지 주소: http://tmdb.co.kr/--------- 앞쪽에 http://tmdb.co.kr을 앞에 직접 달았어야 함. 굳이 똑같은 정보를 계속해서 넣을 필요x 나중에 처리 쉽게하기 위해서 앞에 http://~~를 생략해놓은 것일 수 있다. 따라서, response값을 잘 봐야 하고 잘 조합시켜야 함. 2. 이미지 변환 시점 셀에서 URL, UIImage 변환을 할 것인..

[iOS swift] json 이미지 collectionview로 가져오기

[iOS swift] json 이미지 collectionview로 가져오기 https://github.com/SeungYeonMichelleYoo/networkBasic GitHub - SeungYeonMichelleYoo/networkBasic: webView / Lotto / Translation webView / Lotto / Translation. Contribute to SeungYeonMichelleYoo/networkBasic development by creating an account on GitHub. github.com ImageSearchVC 핵심은 var fetchedList: [String] = [ ] 을 선언해주어야 했던 것. let list = json["items"].arr..

iOS swift 타입 어노테이션 vs. 타입추론

iOS swift 타입 어노테이션 vs. 타입추론 -> 누가 더 빠를까? => 타입 추론 (근데 사실 속도 차이가 많이 나지는 않음) 아래 링크 참조 https://forums.swift.org/t/regarding-swift-type-inference-compile-time-performance/49748 Regarding Swift type inference compile-time performance Hey all! This came up during a discussion today and I honestly wasn't sure if my assumptions were correct so looking for some clarity here! 🤞 What are the compile-time p..