Hacker News new | ask | show | jobs
by mp3jeep01 4493 days ago
One of the bigger takeaways from this article should be to make a decision of where to set layout parameters, and stick with it. I'm sure we all have opinions on using the in-code method vs IB, and can debate 'till the end of time. As a relatively new iOS dev picking up an existing codebase, the biggest thing I could say is be consistent. The number of times I tried setting something in code only to find it was being changed in IB is far too many.
1 comments

Very good tip and something I find myself screwing up on projects all the time. A good example is with scroll views. There are quite a lot of parameters than usually need to be set (zoom scale, user interaction, multi touch, delegate). I can't count the number of times I've been debugging why it isn't working only to find I've mistakenly set a parameter in IB and code that are conflicting.