I know that @indragie's answer is a very common one, but it's a common misunderstanding that will cause you a lot more work than you actually need to do.
I know that @indragie's answer is a very common one, but it's a common misunderstanding that will cause you a lot more work than you actually need to do. As long as you name the xib files a certain way, they will be automatically selected for either iPhone or iPad. Check out my answer to this same problem on another post: iOS: Using device modifiers for loading xib files?
Definitely the best way of handling this issue that I've seen! – Kyle Humfeld Mar 19 at 19:43.
You can use UI_USER_INTERFACE_IDIOM() to check whether the application is running on an iPad or an iPhone/iPod touch: if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { // Running on iPad } else { // Running on iPhone or iPod touch } For more information on loading NIB files, read Apple's Resource Programming Guide on Nib Files. You may want to specifically check out the Loading Nib Files Programmatically section which shows how to programatiically load a NIB from within your code using NSBundle. You can then use this in conjunction with the above code to correctly load the proper NIB depending on which device you're runining on.
1 The iOS SDK provides a simple naming convention which will load the correct xib file based on device. You don't need to proliferate this if statement structure throughout your code. I describe it below in my answer.
– Kenny Wyland Mar 19 at 18:00.
Just add a file named MainView~ipad. Xib makes it load this one i.s.o. MainView.
Xib when running on a iPad..
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.