0

I have UILabel in storyboard and I set it horizontal spacing 0 with a UITextField. I set View device as: iPhone 4s. when I run my Xcode project by printing UILabel's width it prints 170 and when I change the View as Device: to some iPad, it prints 618. It should be an autoconstraint. I keep the UITextField's (2nd object) width fixed.

In Normal Conditions it works fine (tested it by giving background not printing, printing keeps the same above issue) but the width changes automatically when storyboard default device changes. But when we put a Masklayer, the issue starts.

Is it my Projects settings problem or something else?

My sample Project code:

https://drive.google.com/open?id=1gREwY-o9dyvXnSAe2Ipz_Ew5NUSOUcdx

Bibin KJ
  • 77
  • 8

0 Answers0