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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 07-19-2009, 02:20 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 14
Default Using the new features in iPhone OS 3.0, but still have compatibility with 2.2.1

Is there any way to use new code that is available in 3.0, But have
that code disabled in earlier versions of iPhone OS? Thanks in Advance!
George the Mac is offline   Reply With Quote
Old 07-20-2009, 02:08 PM   #2 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 26
Default

Have a look at the Applle MailComposer Readme.txt, it explains it in detail https://developer.apple.com/iPhone/l.../listing7.html

"MailComposer demonstrates how to target older OS versions while building with newly released APIs. This sample also shows how to use the MessageUI framework to create and send email messages from within your application. "
tealeafx is offline   Reply With Quote
Old 07-20-2009, 02:34 PM   #3 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: San Francisco, CA
Posts: 157
Default

The key is making the 3.0 frameworks "weak" frameworks and including exceptions in the actual implementation to handle the OS type. As the above reply says, check out the MFMailComposer it is a create reference for how this can be achieved. It can be done like this for other 3.0 features as well.
__________________
DrinkFit - Beer, Cocktail, Liquor & Wine Nutrition Facts Now Available on iTunes!
www.drinkfitapp.com
JCooperman is offline   Reply With Quote
Reply

Bookmarks

Tags
2.2.1, 3.0, compatibly, feature

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: 259
18 members and 241 guests
14DEV, @sandris, ADY, ArtieFufkin10, bookesp, ckgni, Dani77, DarkAn, HemiMG, iDifferent, jakerocheleau, JasonR, prchn4christ, Rudy, ryantcb, Speed, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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