ios - How to hide a label using auto layout -


I have a UIL label in a custom button

On the left side of the label I have a UIPageControl PageControl There may be more or less pages in it. Now I want to use the automatic layout to hide the label when there is not enough room for all of them. When only changing the width of the label, the text is cut or cut. Is there any move?

UIPageControl UILabel UIButton

<<< Class> " Post-text "itemprop =" text ">

You do not set the width or height layout interrupt ( frame directly ), So other subviews are kept properly - but besides this, you should set its hidden property to yes

Delete - as any other obstacles depending on them will be broken.


Comments