본문 바로가기

분류 전체보기539

[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.
[iOS] UIScrollView contentInsetAdjustmentBehavior How to ignore safe area insets in UIKit | Sarunw Learn how to make UIScrollView, UITableView, and UICollectionView ignore safe area insets and put their content behind that navigation bar. sarunw.com Apple Developer Documentation developer.apple.com contentInsetAdjustmentBehavior safe area inset을 이용해, 어떤 방식으로 ScrollView의 content 영역을 조정할지 정하는 UIScrollView의 프로퍼티 즉, safe area가 있는 디바이스의 경우엔, ScrollV.. 2022. 8. 2.
[iOS] IPA 파일 IPA File Extension - What is an .ipa file and how do I open it? Verified by FileInfo.com The FileInfo.com team has independently researched the iOS Application file format and Mac, Windows, Linux, and iOS apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have v fileinfo.com IPA (iOS App Store Package) apple의 iOS device에 설치 가능한 iOS Applic.. 2022. 8. 2.