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 between each?
+1
A:
Use the buttons' autoresizingMask
property. If the parent view's only going to resize vertically, then that can just be set to UIViewAutoresizingFlexibleTopMargin
.
Noah Witherspoon
2010-02-22 17:35:45