3 ms·
Once you "get" doing AutoLayout you will never want to go back. I'm speaking as a guy who swore up and down to frames. All it takes is doing some adaptive stuff
by ggamecrazy 12y ago
Once you "get" doing AutoLayout you will never want to go back. I'm speaking as a guy who swore up and down to frames. All it takes is doing some adaptive stuff for 3.5, 4, 4.7 and 5.5 inch screens to make you want to jump out your window.
By the time you create a good system to get the frames to work with an adaptive layout, you just implemented a poor man's version of AutoLayout.
Just my $0.02. I think it saves me a lot of time. I try to avoid AutoLayout in IB and just use code, either a third party DSL or apple's own visual format language.
- acmecorps 12y agoHow do you do animations with autolayout? Isn't it kinda hard compared to frames?
- solomone 12y agoIt's actually easier depending on the animation you want to do. You can set an NSLayoutConstraint to an IBOutlet and then change it's constant in an animation block.
- weixiyen 12y agoyou can just set the constraint constant. I'd say it's much easier.
- ggamecrazy 12y agoYou just have to store the constraint in your VC or custom view. You still need to use frames sometimes though. I have found that scrollviews and AutoLayout are arch-nemesises.