Search code examples
objective-cnsobjectiphone-5

Moving a button in a ViewController from a NSObject class (adjusting to 4" screen)


I am working on adjusting all my iPhone screens to the new iPhone 5 4" screen. To make the code easier to manage i would like to use an NSObject class to do this that calls on a ViewController to move a button or whatever needs to be moved.

Would someone please give me some hints how to accomplish this or if there is a better way of doing this.


Solution

  • I recommend you look into using Auto Layout. It will do everything you need.