开发者

How to create UIButtons anchored to the bottom of the view?

开发者 https://www.devze.com 2022-12-20 18:34 出处:网络
What\'s the best practice to create a few UIButtons in code that are anchored to the bottom of the view with a predefined spacing bet开发者_如何学Cween each?Use the buttons\' autoresizingMask property

What's the best practice to create a few UIButtons in code that are anchored to the bottom of the view with a predefined spacing bet开发者_如何学Cween each?


Use the buttons' autoresizingMask property. If the parent view's only going to resize vertically, then that can just be set to UIViewAutoresizingFlexibleTopMargin.

0

精彩评论

暂无评论...
验证码 换一张
取 消