Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-08-2010, 08:43 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 31
mdansevern is on a distinguished road
Default iPhone 4 only app

Hi folks,
I have finished development of my first iPhone app (which I started a couple of weeks ago). My app uses some OS4 only APIs, can I still deploy this app to the App Store even though it only works for iPhone 4 and uses new OS?

Also, of course it does not run on the iPad because of the OS version differences.

thank you.

Last edited by mdansevern; 08-08-2010 at 09:03 AM.
mdansevern is offline   Reply With Quote
Old 08-08-2010, 10:02 AM   #2 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: Long Beach, CA
Posts: 612
bytor99999 is on a distinguished road
Send a message via AIM to bytor99999 Send a message via Yahoo to bytor99999
Default

Definitely. Why not?

Just your base SDK and deploy SDK properties should be set to iOS4.

But you can also make your code work on older OSs but adding code like

if ([object respondsToSelector:....) {
----iOS4 specific code here
} else {
----Code that runs on older devices instead
}

That way you aren't closing your market down with just iOS4 users.

Mark
__________________
Perfect World Programming LLC
http://www.perfectworldprogramming.com

Please check out my apps.

TubeOrganizer
http://www.spritzlerapps.com/tube-organizer.html

Paper Clips
http://spritzlerapps.weebly.com/paper-clips.html
bytor99999 is offline   Reply With Quote
Old 08-08-2010, 06:58 PM   #3 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 106
AdamSubach is on a distinguished road
Default

Add this to you .plist:

Key: "Required device capabilities"

Value: "camera-flash"

What this will do is limit your app to only work with iPhone 4.
__________________
My Apps: Sketch Pong
http://itunes.apple.com/us/app/sketc...378673191?mt=8
AdamSubach is offline   Reply With Quote
Old 08-09-2010, 01:30 PM   #4 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 31
mdansevern is on a distinguished road
Default

Quote:
Originally Posted by bytor99999 View Post
Definitely. Why not?

Just your base SDK and deploy SDK properties should be set to iOS4.

But you can also make your code work on older OSs but adding code like

if ([object respondsToSelector:....) {
----iOS4 specific code here
} else {
----Code that runs on older devices instead
}

That way you aren't closing your market down with just iOS4 users.

Mark
Thank you for the help.

I changed the Base SDK to 3.2, and now Im seeing this error:

The 'rootViewController' outlet of UIWindow is not available on releases prior to iPhone OS 4.0. Remove the connection and instead programmatically add the view controller's view to the window after the application finishes launching.


Anyone seen this before?
mdansevern is offline   Reply With Quote
Old 08-09-2010, 02:11 PM   #5 (permalink)
"Sorry, but I dont know."
 
Join Date: Dec 2009
Location: Switzerland (CH)
Age: 16
Posts: 213
mavrick3 is on a distinguished road
Default

Errm... iOS 3.2 is for iPad...

See here: iOS Application Programming Guide: Build-Time Configuration Details
mavrick3 is offline   Reply With Quote
Old 08-10-2010, 11:38 AM   #6 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 14
Jake is on a distinguished road
Default

Does your app specifically make use of the iPhone 4's hardware? If not, then you should just make your app iOS4 only instead of limiting sales to a single device.
Jake is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 311
8 members and 303 guests
arash5500, HemiMG, linkmx, mediaspree, Objective Zero, Paul Slocum, stanny, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:31 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0