I am working on a new application that I want to be universal for iPhone and iPad. I started with the Create from Window wizard and created separate application delegates in the iPhone and iPad groups. Since I was already familiar with iPhone dev, I did this part of my project, and now I'm ready to do some things for the iPad.
So ... I started by adding the UISplitViewController to my iPad delegate, switched the active SDK to 3.2, and it works! But when I go back to 3.1.3 and try to run it in the simulator, Build and Go will fail. To start, I see:
... path ... / iPad / AppDelegate_Pad.h: 13: error: expected specifier-classifier-list before "UISplitViewController"
I have the base SDK installed at 3.2, and my deployment target level is at 3.1.3. I thought that was enough. But I also found in the documentation this method to conditionally compile:
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 30200 MyIPadViewController* vc;
So what do I need to do this everywhere? There seems to be a lot of code to add (that I will get rid of 4.0 for 4.0 soon), so I feel like I have to do something wrong. And I donβt even know how this works for things like @property or @synthesize.
tl; dr version of the question - did I miss the setup somewhere?
iphone build-process xcode ipad
bpapa May 03 '10 at 15:41 2010-05-03 15:41
source share