iFixit/iFixit-iOS — pull request #9 by BaseInfinity (2013-02-17 01:41:00+00:00)
Title: Add script for creating custom apps

A lot of info is explained within the Ruby script itself. What this script will do is whenever someone comes to us and wants to create a new custom iOS app, we can run this script to make all the code changes within our app. We just need to put images/assets in the correct file path. This saves hours of work and does 99% of the work now.

* I refactored some if-else statements to switch statements for easier readability.
* I simplified the way we do custom image headers for iPads. Before we would create a whole new UIImageView for each header, stack them all on top of each other, and only display the correct one and hide the others. Now we just have one UIImageView, and depending on the app, we just change the image within the UIImageView, this is much more simpler and far more efficient.