skip to Main Content

I want to set label & Imageview in centre of myView but App crashing after adding some constraints – Ios swift

Error:- Thread 1: "Unable to activate constraint with anchors <NSLayoutXAxisAnchor:0x280af8500 "UILabel:0x103dc4fa0.centerX"> and <NSLayoutXAxisAnchor:0x280af89c0 "UIView:0x103dc49d0.centerX"> because they have no common ancestor. Does the constraint or its anchors reference items in different view hierarchies? That's illegal." I've created a function programmatical in…

VIEW QUESTION
Back To Top
Search