I am making a new Objective C class and it gave two options as check boxes:
1) Targeted for iPad
2) Make an XIB interface
What if I want to make an app that would work on both iphones and ipads? Can I do that or will I essentially need to re-do the app, so if I am testing it out on the phone first, I should not check that box? Or will that box just make things compatible with the iPad?
Also, for the XIB interface – its where I can place the ui elements, right? But can I place the UI elements on the button right from the storyboard?
Thanks!
Yes, XIB interfaces, like storyboards, are where you can interactively drop the UI elements. XIBs are a more primitive version of storyboards (which came in with iOS 5), but at the same time if you’re working on a project with many hands and developers working on a single project, or lots of screens and view controllers (which would make for a very hefty & unwieldly storyboard), it may be worthwhile to stick with xib files.
If you select “Targeted for iPad”, you may only get a storyboard sized for iPad-sized screens.
If you select “Make a XIB interface”, your new class will be using xib files instead of storyboards.