0
我有一个UILabel
,当我的设备处于横向右键模式时,我得到它的大小和高度。我正在使用Autolayout
,并以编程方式正确布局设备方向。我使用约束来固定我的标签高度和宽度,但是我的高度有误。我非常困惑。在横向上没有得到正确尺寸的UILabel
// Height is 21 and is fixed but I am getting 4 here.
NSLog(@"Password Label height is %f", _passwordLabel.frame.size.height);
是否对该标签设置了其他约束? – Shreyank
是的。我设置了其他限制。 – WasimSafdar
你能给这些细节吗? – Shreyank