분류 전체보기533 [iOS 예제] CircularCarouselBannerView CircularCarouselBannerView 아래 사진과 같이, 배달의 민족이나 기타 커머스 앱들에서 상단에 무한하게 순환하는 형태의 Carousel Banner를 확인할 수 있는데 이걸 만들고자 한다. 조건은 Circular하게 스크롤했을 때 무한한 순환이 가능해야 되고, auto scroll이 되어야 한다. 기본적인 원리는 아래 그림과 같이 item list의 앞 뒤에 맨 첫 번째 아이템, 맨 마지막 아이템을 하나씩 이어붙인 다음에 ScrollView의 가장 처음, 혹은 마지막에 도착했을 때 contentOffset을 이동시켜서 무한히 이동할 수 있는 것처럼 보이게 하는 것이다. https://github.com/Sky-Titan/CircularCarouselBannerView GitHub - S.. 2022. 8. 19. [iOS] Xcode 저장공간 Xcode 저장공간 이해 및 관리 해당 글은 Understanding and Managing Xcode Space 글을 보고 정리한 글입니다. imjhk03.github.io Understanding and Managing Xcode Space Learn how to free up space hogged by Xcode in caches, derived data, archives and simulators! www.raywenderlich.com Xcode는 단순한 text editor 이상의, IDE (Integrated Development Environment)이다. iOS 개발에 IDE를 사용함으로써, 얻는 장점으로는 프로젝트 빌드, debugging, code-sign과 같은 과정들이 쉬워진다는.. 2022. 8. 17. [iOS Issue] iOS12에서 Constraint의 priority 사용 시 크래시 발생 How can I change constraints priority in run time I have a view which has dynamic height and I am trying to change this view height priority in run time. Here is my part of code; if (index == 0) { surveyViewHeightConstraint.constant = 0; stackoverflow.com Apple Developer Documentation developer.apple.com constraint의 priority 설정 시에 iOS12에서 priority를 1000으로 설정할 경우 크래시가 발생한다는 내용이다. deleteButtonTop... 2022. 8. 17. [iOS 예제] UICollectionView에서 cell 수직방향 정렬 UICollectionView에서 cell 수직방향 정렬 UICollectionView 사용 시, 기본적으로 같은 line에 있는 cell들은 모두 중앙 정렬이 된다. 하지만 CollectionView를 사용하다보면 중앙 배치보단 상하, 혹은 좌우 한 방향으로 정렬시키는 경우가 훨씬 많다. 그래서 Custom CollectionViewFlowLayout을 만들어서 수직 스크롤 시 한 방향으로 정렬시킬 수 있도록 해보았다. https://github.com/Sky-Titan/TSCollectionViewVerticalAlignLayout GitHub - Sky-Titan/TSCollectionViewVerticalAlignLayout: Swift UICollectionView custom Layout fo.. 2022. 8. 6. 이전 1 ··· 11 12 13 14 15 16 17 ··· 134 다음