Thursday, January 26, 2012

Positioning UIViews

UIView+position is the most useful category I've come across - so good, I add it to my project's .pch so it's always available. Author Tyler Neylon made this available via a Apache 2 license. You can do all sorts of neat stuff e.g.

view1.frameY = view2.frameBottom
view1.frameWidth = view2.frameHeight

No comments:

Post a Comment