Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

zerocustom1989

macrumors regular
Original poster
Sep 5, 2007
246
22
Hey guys, I've got an app on the Appstore and for the 2.0 release I wanna support OS 3.2. What are some things I need to take into consideration?

I think the ios4-only thing I use is iAds, how can I make sure that code is only run if the App is being run on a 4.0+ device?

I haven't had to deal with version-ing yet, so it's foreign to me.
 

zerocustom1989

macrumors regular
Original poster
Sep 5, 2007
246
22
Hey guys, I've got an app on the Appstore and for the 2.0 release I wanna support OS 3.2. What are some things I need to take into consideration?

I think the ios4-only thing I use is iAds, how can I make sure that code is only run if the App is being run on a 4.0+ device?

I haven't had to deal with version-ing yet, so it's foreign to me.

Well, I found out I can check the device software like this:
Code:
if ([[[UIDevice currentDevice] systemVersion] floatValue] <3.2)

Now im just wondering how I can get Xcode to build and run a target that runs on both 3.2 and 4.0 I'm having trouble getting it to simulate just be setting the simulator to 3.2.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.