Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Agreed. If iOS actually had a sane declarative language like Android's xml layouts then I'd do everything in code but since layouts coded in Obj-C are excruciatingly painful to read and edit you're better off with a WYSIWYG tool, even if (IMO) WYSIWYG is fundamentally the wrong approach for UI development.

I actually consider this a big liability for Apple going forward. The explosion of "phablets" and other form factors spells the end of their pixel-perfect design approach and their tools and APIs for managing dynamic, variable layouts are stone age compared to Android's.



Cocoa Auto Layouts are what you're looking for: https://developer.apple.com/library/mac/#documentation/UserE...


They're better than nothing but compared to the html-esque layouts in Android they're much harder to write, read and debug.


I would beg to differ. I much prefer to work with AutoLayout constraints rather than some custom XML layout like with Android or WP.


YMMV but when the presenter of the WWDC AutoLayout track had to dig into Instruments to find out why his layout was throwing exceptions I felt like I was watching some kind of really nerdy April fools joke.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: