Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I'm trying to achieve a very simple scenario using auto layout but without success. Please help me... I need 3 squares with a dynamic size(ex: on iPad, all of them should be scaled) on a table cell.

I have spend already some hours finding a solution.... This picture showing how the view should look like: enter image description here

Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
143 views
Welcome To Ask or Share your Answers For Others

1 Answer

You can do it with autoresizing tool which is appear in size inspector.

Step1: Place your views in which ever pattern you want.

Step2: Then select a view and click on size inspector.

Step3: Click to select inner arrows of autoresizing tools rectangle and deselect outer arrows (predefined selections).

Step4: Repeat same step for the remaining squares. Thats it. Verify below image which i have done. enter image description here

Do same for by placing table view in your storyboard, verify below image for which points autoresizing settings for table view clearly. enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...