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 09-13-2010, 05:17 PM   #1 (permalink)
New User
 
Join Date: Sep 2010
Location: Terni, italy
Posts: 8
catnic s.r.l. is on a distinguished road
Send a message via Skype™ to catnic s.r.l.
Default compatibility ios4 features

I am writing an application which uses MFMessageComposeViewController which is a ios4.0 feature which allows to send SMS.
This feature was not available in ios 3.x.

On ios4 it works ok. What happens if I install the app on a 3.x device?

If it does not work is it possible to detect if the feature is available and eventually disable the button to send the sms on 3.x devices?

More in general.... if I use 4.x features and then i set "IOS development target" to 3.1 for example what happens to theese unsupported features?

Thanks,
Massimo
catnic s.r.l. is offline   Reply With Quote
Old 09-13-2010, 05:58 PM   #2 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 1
axiom is on a distinguished road
Default

Not sure if this helps but I recently came across a post regarding backwards compatibility of MPMoviePlayerController. See post at link below. Hope it helps:

Developing iPhone Apps with iOS4 SDK, Deploying to 3.x Devices : Base SDK and iPhone OS Deployment Target
axiom is offline   Reply With Quote
Old 09-13-2010, 07:24 PM   #3 (permalink)
Pro. Game Developer
iPhone Dev SDK Supporter
 
Join Date: Feb 2009
Location: żLa Islas Hermosas?
Posts: 2,176
Kalimba is on a distinguished road
Default

Quote:
Originally Posted by catnic s.r.l. View Post
More in general.... if I use 4.x features and then i set "IOS development target" to 3.1 for example what happens to theese unsupported features?
At best, they just won't work on a device with pre-4.x iOS. At worst, attempting to use them will cause your application to crash. Search around for ways to add run-time checks for backwards compatibility.
__________________
~~ Word Flurry ~~ App Store / Website / Facebook
Kalimba is offline   Reply With Quote
Old 09-13-2010, 07:58 PM   #4 (permalink)
New User
 
Join Date: Sep 2010
Location: Terni, italy
Posts: 8
catnic s.r.l. is on a distinguished road
Send a message via Skype™ to catnic s.r.l.
Thumbs up Good reference

Hi Axiom,

it's a good reference! It can help me much.
Thanks a lot

Quote:
Originally Posted by axiom View Post
Not sure if this helps but I recently came across a post regarding backwards compatibility of MPMoviePlayerController. See post at link below. Hope it helps:

Developing iPhone Apps with iOS4 SDK, Deploying to 3.x Devices : Base SDK and iPhone OS Deployment Target
catnic s.r.l. is offline   Reply With Quote
Old 09-13-2010, 09:12 PM   #5 (permalink)
New User
 
Join Date: Sep 2010
Location: Terni, italy
Posts: 8
catnic s.r.l. is on a distinguished road
Send a message via Skype™ to catnic s.r.l.
Default solution found!

This works...


Code:
bool sms_capable = NO;
if (NSClassFromString(@"MFMessageComposeViewController") != nil) {
  if ([NSClassFromString(@"MFMessageComposeViewController") canSendText]) {
				sms_capable = YES;
		    }
		}
catnic s.r.l. is offline   Reply With Quote
Reply

Bookmarks

Tags
compatibly, development device, ios4

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: 328
14 members and 314 guests
Absentia, cgokey, fiftysixty, givensur, heshiming, iGamesDev, linkmx, michaelhansen, mraalex, PixelInteractive, raihan.zbr, Sloshmonster, Trickphotostudios
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,117
Posts: 402,890
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

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