I see similar questions already here and Google, but no one answers my real question. I would like to have one NIB for iPhone and iPad. It is assumed that the NIB itself has only an empty view. Everything that should go to the point of view is carried out programmatically. I check if the device is iPhone / iPad, and then calculate and set the layout. A little more work, but for the required task this is the best solution for me.
But when adding a new view through the "New File ... → User Interface → View" they ask me about the device family. The choice, of course, is the iPhone or iPad. But I want the presentation to work on both devices, as if generic.
I tried viewing the iPhone and it works on both devices, iPhone and iPad. Everything seems to be in order. My question is more general, asking whether it is normal to use the iPhone also for the iPad. Should I do it differently? Any better solution?
Please understand that I really want to work with one view and programmatically, therefore solutions for using separate views for each device and using IB should be omitted, please.
thanks
source
share