tags:

views:

164

answers:

1

Hi,

I ported an existing iPhone app to support on iPad. It works fine on iPad because i followed the procedure mentioned in Apple doc. I upgraded that app as creating Universal application, because i want to have a single binary which can work on iPhone and iPad. I have a doubt now is that can i build the same project for "3.1.3", because i'm using "UI_USER_INTERFACE_IDIOM== UIUserInterfaceIdiomPad" to differentiate between iPhone and iPad in code. As it is NOT available in 3.1.3 SDK, when i compile the same project now for 3.1.3, it gives compilation error as 'UIUserInterfaceIdiomPad undeclared'. Can't i get it resolved? I want to use the same project to compile for 3.1.3 and 3.2(iPad), is it possible? Because as Apple says i can use the same binary on iPhone and iPad if it is a Universal binary. What i'm doing wrong? How can i resolve it?

Thanks.