Xcode/ERROR

ERROR ) ‘NSGenericException’, reason: ‘Unable to activate constraint with anchors, because they have no common ancestor

후르륵짭짭 2020. 12. 23. 22:15
728x90
반응형

 

안녕하세요. 후르륵짭짭이 입니다.

이번에 Code로 AutoLayOut을 구현하다가 만난 에러들에 대해서 알려드릴려고 합니다.

‘NSGenericException’, reason: ‘Unable to activate constraint with anchors, because they have no common ancestor

이 에러는 SubView 되기 전에 View를 구성할 때 발생하는 오류 입니다.

따라서 반드시 SubView 후에 처리해주니 해결 됐습니다.

www.dev2qa.com/how-to-fix-swift-error-unable-to-activate-constraint-with-anchors-because-they-have-no-common-ancestor-layoutconstraints-unable-to-simultaneously-satisfy-constraints/

 

How To Fix Swift Error Unable To Activate Constraint With Anchors Because They Have No Common Ancestor & LayoutConstraints Unabl

When i develop an iOS app, i add a UITextField in the app UI programmatically. And i also add some constraints to the UITextField object in swift source code to make it auto layout. But when i run the app, it throws an exception with error message ‘NSGen

www.dev2qa.com

 

UIPageControl에서 View의 크기에 따라 달라지는 형태 

원래는 없었는데,,,, IOS14 부터 생긴것 같습니다.

zeddios.tistory.com/1160

 

iOS ) iOS 14+에서 UIPageControl 좌우 패딩

안녕하세요 :) Zedd입니다. 기록용 글 입니다. # 문제 iOS 14.0에서 돌렸을 때 pageControl이 이상하게 나왔다. 왼쪽이 iOS 13.5이고, 오른쪽이 iOS 14.0이다. UIPageControl의 계층구조라던가 그런게 바뀐 것..

zeddios.tistory.com

 

SceneDelegate에서 rootView 설정하는 방법 : 

calmone.tistory.com/entry/iOS-13-AppDelegate-SceneDelegate에서-RootViewController-설정하기

 

[iOS 13] AppDelegate, SceneDelegate에서 RootViewController 설정하기

안녕하세요. 요즘 오늘의지출 앱을 만드느라 정신이 없네요 ㅎㅎ; 저는 항상 RootViewController를 소스로 지정해서 사용하고 있는데요 오늘의지출 앱을 만들면서 겪었던 난해한 부분과 해결법을 공

calmone.tistory.com

 

CollectionView 코드로 구현하는 방법 : 

stackoverflow.com/a/49577463/13065642

 

How to make UICollectionView class programmatically in iOS Swift 3 without using storyboard?

I made a class GalleryCollectionViewController that inherited from UICollectionView like this: import UIKit class GalleryCollectionViewController: UICollectionViewController { var dataSource...

stackoverflow.com

 

CollectionView 화면이 회정 될 때, 다시 VIew를 구성하는 방법 : 

stackoverflow.com/a/56294239/13065642

 

728x90
반응형