본문 바로가기

iOS/STUDY

(56)
[iOS] UICollectionViewDiffableDataSource https://developer.apple.com/tutorials/app-dev-training/creating-a-list-view Apple Developer Documentation developer.apple.com Apple UIkit tutorial을 보고 배운 내용을 정리한 글입니다. Configure the Data Source - diffable data source 이전글에서 만들었던 collection view 의 data source 로 difable data source 를 사용했습니다. diffable data source 라는 것을 처음 봤는데 데이터가 변경될 때 사용자 인터페이스를 업데이트하고 애니메이션 효과를 준다고 합니다. 사실 여기가 굉장히 복잡해서 (저에게는ㅎㅎ) 정..
[iOS] UICollectionViewLayout https://developer.apple.com/tutorials/app-dev-training/creating-a-list-view Apple Developer Documentation developer.apple.com iOS App Dev Tutorials 를 보면서 배운 내용을 정리하였습니다. Creating a List View 이전 튜토리얼에서는 리스트 뷰를 테이블뷰로 생성했었는데 이번 강의에서는 콜렉션뷰를 사용했습니다. 똑같이 Reminder 이라는 Model 을 생성하는데 달라진 점은 #if DEBUG, #endif 이 플래그는 realse 용 앱을 빌드할 때 코드가 컴파일되지 않도록 하는 컴파일 지시문입니다. 디버그 빌드에서 코드를 테스트하거나 샘플 테스트 데이터 제공을 위해 이 플래그..
[Swift] @escaping iOS App Dev tutorial 을 따라하던 도중에 @escaping 이 나와서 개념을 정리해보려고 합니다. @escaping을 사용한 전체 코드를 보면 ReminderListCell.swift 의 configure 함수의 파라미터에서 @escaping annotation을 사용했고, 이 configure 함수를 ReminderListViewController.swift에서 호출하고 있습니다. ReminderListCell.swift import UIKit class ReminderListCell: UITableViewCell { // like reference typealias DoneButtonAction = () -> Void @IBOutlet var titleLabel: UILabel! @I..
[iOS] Instructions (오픈소스) - 튜토리얼 가이드 추가 (coach marks) 진행중인 프로젝트에 튜토리얼을 넣어보고 싶어 어떻게 넣을까 찾던 도중 좋은 '개발하는 정대리'님 유튜브에서 오픈소스를 소개시켜 주신 영상을 보고 작성한 글입니다. 오픈소스 깃허브 링크 https://github.com/ephread/Instructions#cocoapods GitHub - ephread/Instructions: Create walkthroughs and guided tours (coach marks) in a simple way, with Swift. Create walkthroughs and guided tours (coach marks) in a simple way, with Swift. - GitHub - ephread/Instructions: Create walkthroughs a..
Error: Unable to process request - PLA Update available : You currently don't have access to this membership resource. To resolve this issue, agree to the latest Program License Agreement in your developer account. https://appstoreconnect.apple.com/ https://appstoreconnect.apple.com/ appstoreconnect.apple.com 여기 들어가서 라이센스 업데이트? 해주면 된다.
[WWDC 2021] Discoverable design https://developer.apple.com/videos/play/wwdc2021/10126/ Discoverable design - WWDC 2021 - Videos - Apple Developer Discover how you can create interactive, memorable experiences to onboard people into your app. We'll take you through discoverable... developer.apple.com 사용자와 상호작용이 가능하고, 기억에 남는 경험을 앱에서 제공할 수 있도록 디자인 하는 방법! 을 배우는 세션인 것 같습니다. 사용자가 앱을 사용할 때 앱의 기능을 한눈에 파악할 수 있도록 어떤 인터페이스를 제공할 수 있는지 🧐 ..
[iOS] UICollectionView https://www.youtube.com/watch?v=eWGu3hcL3ww iOS Academy - Swift for Beginners: Create Collection View in Xcode (iOS - 2021) 영상을 참고하였습니다 UICollectionView를 만들기 위해 필요한 프로토콜은 3가지가 있습니다. UICollectionViewDelegate UICollectionViewDataSource UICollectiionViewDelegateFlowLayout 딜리게이트와 데이터 소스는 테이블 뷰와 비슷하고, 플로우 레이아웃은 컬렉션뷰 셀의 모양?을 잡아주는 것입니다. 여기서 사용할 커스텀 셀의 nib 파일의 생성은 https://luen.tistory.com/89?category=91..
[iOS] xib CollectionView를 공부하다가 xib 파일로 셀을 만드는 것을 보고 정확한 공부를 위해 글을 끄적여봅니다. xib, nib의 차이점은 다음에 알아보는 것으로 하고, Xcode에 만들어지는 파일은 xib 파일이지만 다들 nib이라고 하더군요. 닙닙닙닙닙닙닙닙닙 닙 파일 만드는 방법을 글로 끄적여본다면.. Cocoa Touch Class 파일로, 서브클래스는 테이블셀 or 컬렉션뷰셀, 그리고 'Also create XIB file' 을 클릭해서 생성합니다. xib 파일에 스토리보드처럼 셀을 커스텀합니다. swift 파일에서 @IBOutlet 으로 연결해줍니다. xib 파일에서 셀의 'identifier'을 지정해줍니다. 이렇게 xib 파일을 만들 수 있습니다. 만든 셀을 연결 시켜주는 방법은 뷰컨트..