I'm trying to write an app without using nib, everything I'll do it programmatically.
Now the problem is, how am I going to support both iPad and iPhone? Obviously, I can't do it with
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
// load iPad nib
} else {
// load iPhone nib
}
If I create 2 ViewControllers, then the IBAction
will be redundant.
Any suggestion?