Is there any way I can design my classes for both iPhone4 and iPhone5 using the same xib?
You can use auto layout feature provided by apple. Please refer to apple document for this:- https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/Introduction/Introduction.html