AutoLayout with hidden UIViews?

后端 未结 13 1368
南方客
南方客 2020-11-27 09:27

I feel like it\'s a fairly common paradigm to show/hide UIViews, most often UILabels, depending on business logic. My question is, what is the best

13条回答
  •  醉梦人生
    2020-11-27 10:10

    I build category to update constraints easily:

    [myView1 hideByHeight:YES];
    

    Answer here: Hide autolayout UIView : How to get existing NSLayoutConstraint to update this one

    enter image description here

提交回复
热议问题