¡@

Home 

2014/10/15 ¤U¤È 10:14:40

iphone Programming Glossary: support

How to programmatically send SMS on the iPhone?

http://stackoverflow.com/questions/10848/how-to-programmatically-send-sms-on-the-iphone

How to develop or migrate apps for iPhone 5 screen resolution?

http://stackoverflow.com/questions/12395200/how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution

your view layouts with proper auto resizing masks or look into Auto Layout if you only want to support iOS 6 going forward. If there is something you have to do for the larger screen specifically then it..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

letterboxed or basically the extra 88 points in height would simply be black. If you only plan to support iOS 6 then definitely consider using Auto Layout. It removes all fixed layout handling and instead uses.. out. Nothing will be hard coded and your life will become a lot simpler. However if you have to support older iOS's then it really depends on your application. A majority of applications that use a standard..

Is there a documented way to set the iPhone orientation?

http://stackoverflow.com/questions/181780/is-there-a-documented-way-to-set-the-iphone-orientation

there a documented way to set the iPhone orientation I have an app where I would like to support device rotation in certain views but other don't particularly make sense in Landscape mode so as I swapping.. for shouldAutorotateToInterfaceOrientation as I have already implemented that. I want my app to support landscape and portrait in View 1 but only portrait in View 2. I have already implemented shouldAutorotateToInterfaceOrientation..

How to access SOAP services from iPhone

http://stackoverflow.com/questions/204465/how-to-access-soap-services-from-iphone

of SOAP services. While doing some basic checking in the iPhone SDK I was not able to find any support for accessing SOAP services a bit of Googling lead to the conclusion that there is no support for SOAP.. any support for accessing SOAP services a bit of Googling lead to the conclusion that there is no support for SOAP in the iPhone SDK. So if I do want to build that app I'll need to come up with a approach to..

How to store custom objects in NSUserDefaults

http://stackoverflow.com/questions/2315948/how-to-store-custom-objects-in-nsuserdefaults

NSNumber input input retain if life nil life release life input This code has been added to support encoding and decoding my objecst void encodeWithCoder NSCoder encoder Encode the properties of the object..

How do I associate file types with an iPhone application?

http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application

code is available handles the .pdb and .pdb.gz file types if received via email or in another supported application. To register support you will need to have something like the following in your Info.plist.. .pdb and .pdb.gz file types if received via email or in another supported application. To register support you will need to have something like the following in your Info.plist key CFBundleDocumentTypes key.. zip archive string array dict array Two images are provided that will be used as icons for the supported types in Mail and other applications capable of showing documents. The LSItemContentTypes key lets..

How To Make iPhone App compatible with multiple SDK (firmware) versions

http://stackoverflow.com/questions/3027120/how-to-make-iphone-app-compatible-with-multiple-sdk-firmware-versions

you have to gracefully handle working on older versions by either using older methods or not supporting particular features that need newer SDK support. NEW w XCode 4.2 To support older devices you need.. versions by either using older methods or not supporting particular features that need newer SDK support. NEW w XCode 4.2 To support older devices you need to add armv6 to the build architectures and remove.. methods or not supporting particular features that need newer SDK support. NEW w XCode 4.2 To support older devices you need to add armv6 to the build architectures and remove armv7 from the plist of required..

Install xCode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't see other SDKs

http://stackoverflow.com/questions/3161385/install-xcode-3-2-3-w-iphone-sdk-4-get-base-sdk-missing-cant-see-other-sdk

to existing applications must be built with iPhone SDK 4. Please note the App Store will no longer support applications that target iOS 2.x. Presumably I'm guessing here iPad only and universal apps should use.. lower . The SDK you use to compile does not limit downward what iOS version you can program to or support. Once you've patched things up in your project etc. cf. next section you can set iPhone OS Deployment.. your compliance to 3.0 only calls nor does it have a simulator for these. And if you want to support 4.0 features you'll have to do some conditional code to prevent crashes on 3.0 devices. Fun. You can..

Can I embed a custom font in an iPhone application?

http://stackoverflow.com/questions/360751/can-i-embed-a-custom-font-in-an-iphone-application

solved the question as asked the solution that involves coding your own UILabel subclass doesn't support word wrap which is an essential feature for me though I guess I could extend it to do so. iphone ios.. share improve this question Edit As of iOS 3.2 this functionality is built in. If you need to support pre 3.2 you can still use this solution. I created a simple module that extends UILabel and handles..

How do I do base64 encoding on iphone-sdk?

http://stackoverflow.com/questions/392464/how-do-i-do-base64-encoding-on-iphone-sdk

encoding on iphone sdk I'd like to do base64 encoding and decoding but I could not find any support from the iPhone SDK. How can I do base64 encoding and decoding with or without a library iphone objective..

How do I create delegates in Objective-C?

http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c

this method because it is more precise doesn't mess with NSObject and can provide better tool support. Speed Optimizations Instead of checking whether a delegate responds to a selector every time we want..

Is there a good charting library for iPhone? [closed]

http://stackoverflow.com/questions/769749/is-there-a-good-charting-library-for-iphone

also encompases many other use cases including desktop systems but its design has included iPhone support from the beginning. It's getting pretty close to useable and is currently in use in several shipping..

How to programmatically send SMS on the iPhone?

http://stackoverflow.com/questions/10848/how-to-programmatically-send-sms-on-the-iphone

How to develop or migrate apps for iPhone 5 screen resolution?

http://stackoverflow.com/questions/12395200/how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution

you had set auto resizing masks properly. If you didn't adjust your view layouts with proper auto resizing masks or look into Auto Layout if you only want to support iOS 6 going forward. If there is something you have to do for the larger screen specifically then it looks like you have to check height of UIScreen mainScreen..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

from what I could tell in today's presentation. They will be letterboxed or basically the extra 88 points in height would simply be black. If you only plan to support iOS 6 then definitely consider using Auto Layout. It removes all fixed layout handling and instead uses constraints to lay things out. Nothing will be hard coded.. layout handling and instead uses constraints to lay things out. Nothing will be hard coded and your life will become a lot simpler. However if you have to support older iOS's then it really depends on your application. A majority of applications that use a standard navigation bar and or tab bar could simply expand the content..

Is there a documented way to set the iPhone orientation?

http://stackoverflow.com/questions/181780/is-there-a-documented-way-to-set-the-iphone-orientation

there a documented way to set the iPhone orientation I have an app where I would like to support device rotation in certain views but other don't particularly make sense in Landscape mode so as I swapping the views out I would like to force the rotation to.. I thought I would provide an example as I am not looking for shouldAutorotateToInterfaceOrientation as I have already implemented that. I want my app to support landscape and portrait in View 1 but only portrait in View 2. I have already implemented shouldAutorotateToInterfaceOrientation for all views but if the user is..

How to access SOAP services from iPhone

http://stackoverflow.com/questions/204465/how-to-access-soap-services-from-iphone

app for the iPhone and that app would have to access a couple of SOAP services. While doing some basic checking in the iPhone SDK I was not able to find any support for accessing SOAP services a bit of Googling lead to the conclusion that there is no support for SOAP in the iPhone SDK. So if I do want to build that app I'll.. some basic checking in the iPhone SDK I was not able to find any support for accessing SOAP services a bit of Googling lead to the conclusion that there is no support for SOAP in the iPhone SDK. So if I do want to build that app I'll need to come up with a approach to access SOAP services from the iPhone. What would be the best..

How to store custom objects in NSUserDefaults

http://stackoverflow.com/questions/2315948/how-to-store-custom-objects-in-nsuserdefaults

input retain if name nil name release name input void setLife NSNumber input input retain if life nil life release life input This code has been added to support encoding and decoding my objecst void encodeWithCoder NSCoder encoder Encode the properties of the object encoder encodeObject self.name forKey @ name encoder encodeObject..

How do I associate file types with an iPhone application?

http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application

For example my application Molecules for which the source code is available handles the .pdb and .pdb.gz file types if received via email or in another supported application. To register support you will need to have something like the following in your Info.plist key CFBundleDocumentTypes key array dict key CFBundleTypeIconFiles.. for which the source code is available handles the .pdb and .pdb.gz file types if received via email or in another supported application. To register support you will need to have something like the following in your Info.plist key CFBundleDocumentTypes key array dict key CFBundleTypeIconFiles key array string Document.. com.sunsetlakesoftware.molecules.pdb string string org.gnu.gnu zip archive string array dict array Two images are provided that will be used as icons for the supported types in Mail and other applications capable of showing documents. The LSItemContentTypes key lets you provide an array of Uniform Type Identifiers UTIs that..

How To Make iPhone App compatible with multiple SDK (firmware) versions

http://stackoverflow.com/questions/3027120/how-to-make-iphone-app-compatible-with-multiple-sdk-firmware-versions

is 5.0 or 4.X only when your app is on a 4.0 device. Of course you have to gracefully handle working on older versions by either using older methods or not supporting particular features that need newer SDK support. NEW w XCode 4.2 To support older devices you need to add armv6 to the build architectures and remove armv7 from.. Of course you have to gracefully handle working on older versions by either using older methods or not supporting particular features that need newer SDK support. NEW w XCode 4.2 To support older devices you need to add armv6 to the build architectures and remove armv7 from the plist of required device capabilities. See.. handle working on older versions by either using older methods or not supporting particular features that need newer SDK support. NEW w XCode 4.2 To support older devices you need to add armv6 to the build architectures and remove armv7 from the plist of required device capabilities. See these SO questions and answers..

Install xCode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't see other SDKs

http://stackoverflow.com/questions/3161385/install-xcode-3-2-3-w-iphone-sdk-4-get-base-sdk-missing-cant-see-other-sdk

Checklist reg reqd All new applications and updates to existing applications must be built with iPhone SDK 4. Please note the App Store will no longer support applications that target iOS 2.x. Presumably I'm guessing here iPad only and universal apps should use the 3.2 SDK. That is why 4.0 3.2 are your only choices for.. You can still target devices running iPhone OS 3.0 but not lower . The SDK you use to compile does not limit downward what iOS version you can program to or support. Once you've patched things up in your project etc. cf. next section you can set iPhone OS Deployment Target to a lower iOS version. For a quick shot of how to.. Your usual Xcode 3.2.3 compiler will no longer be enforcing your compliance to 3.0 only calls nor does it have a simulator for these. And if you want to support 4.0 features you'll have to do some conditional code to prevent crashes on 3.0 devices. Fun. You can still download from Apple and install a previous Xcode version..

Can I embed a custom font in an iPhone application?

http://stackoverflow.com/questions/360751/can-i-embed-a-custom-font-in-an-iphone-application

votes. Interesting. No one actually provided an answer that solved the question as asked the solution that involves coding your own UILabel subclass doesn't support word wrap which is an essential feature for me though I guess I could extend it to do so. iphone ios cocoa touch fonts share improve this question Edit As.. I could extend it to do so. iphone ios cocoa touch fonts share improve this question Edit As of iOS 3.2 this functionality is built in. If you need to support pre 3.2 you can still use this solution. I created a simple module that extends UILabel and handles loading .ttf files. I released it opensource under the Apache..

How do I do base64 encoding on iphone-sdk?

http://stackoverflow.com/questions/392464/how-do-i-do-base64-encoding-on-iphone-sdk

do I do base64 encoding on iphone sdk I'd like to do base64 encoding and decoding but I could not find any support from the iPhone SDK. How can I do base64 encoding and decoding with or without a library iphone objective c ios ipad base64 share improve this question There's..

How do I create delegates in Objective-C?

http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c

before calling a particular method on it. Apple recommends this method because it is more precise doesn't mess with NSObject and can provide better tool support. Speed Optimizations Instead of checking whether a delegate responds to a selector every time we want to message it you can cache that information when delegates..

Is there a good charting library for iPhone? [closed]

http://stackoverflow.com/questions/769749/is-there-a-good-charting-library-for-iphone

lack of good plotting frameworks on the iPhone. Core Plot also encompases many other use cases including desktop systems but its design has included iPhone support from the beginning. It's getting pretty close to useable and is currently in use in several shipping iPhone and OS X applications. Edit 2 10 Core Plot has come..

How to programmatically send SMS on the iPhone?

http://stackoverflow.com/questions/10848/how-to-programmatically-send-sms-on-the-iphone

How to develop or migrate apps for iPhone 5 screen resolution?

http://stackoverflow.com/questions/12395200/how-to-develop-or-migrate-apps-for-iphone-5-screen-resolution

If you didn't adjust your view layouts with proper auto resizing masks or look into Auto Layout if you only want to support iOS 6 going forward. If there is something you have to do for the larger screen specifically then it looks like you have..

iOS 6 apps - how to deal with iPhone 5 screen size? [duplicate]

http://stackoverflow.com/questions/12396545/ios-6-apps-how-to-deal-with-iphone-5-screen-size

They will be letterboxed or basically the extra 88 points in height would simply be black. If you only plan to support iOS 6 then definitely consider using Auto Layout. It removes all fixed layout handling and instead uses constraints to lay.. to lay things out. Nothing will be hard coded and your life will become a lot simpler. However if you have to support older iOS's then it really depends on your application. A majority of applications that use a standard navigation bar and..

Is there a documented way to set the iPhone orientation?

http://stackoverflow.com/questions/181780/is-there-a-documented-way-to-set-the-iphone-orientation

there a documented way to set the iPhone orientation I have an app where I would like to support device rotation in certain views but other don't particularly make sense in Landscape mode so as I swapping the views out.. as I am not looking for shouldAutorotateToInterfaceOrientation as I have already implemented that. I want my app to support landscape and portrait in View 1 but only portrait in View 2. I have already implemented shouldAutorotateToInterfaceOrientation..

How to access SOAP services from iPhone

http://stackoverflow.com/questions/204465/how-to-access-soap-services-from-iphone

have to access a couple of SOAP services. While doing some basic checking in the iPhone SDK I was not able to find any support for accessing SOAP services a bit of Googling lead to the conclusion that there is no support for SOAP in the iPhone SDK... was not able to find any support for accessing SOAP services a bit of Googling lead to the conclusion that there is no support for SOAP in the iPhone SDK. So if I do want to build that app I'll need to come up with a approach to access SOAP services..

How to store custom objects in NSUserDefaults

http://stackoverflow.com/questions/2315948/how-to-store-custom-objects-in-nsuserdefaults

name input void setLife NSNumber input input retain if life nil life release life input This code has been added to support encoding and decoding my objecst void encodeWithCoder NSCoder encoder Encode the properties of the object encoder encodeObject..

How do I associate file types with an iPhone application?

http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application

for which the source code is available handles the .pdb and .pdb.gz file types if received via email or in another supported application. To register support you will need to have something like the following in your Info.plist key CFBundleDocumentTypes.. handles the .pdb and .pdb.gz file types if received via email or in another supported application. To register support you will need to have something like the following in your Info.plist key CFBundleDocumentTypes key array dict key CFBundleTypeIconFiles.. string org.gnu.gnu zip archive string array dict array Two images are provided that will be used as icons for the supported types in Mail and other applications capable of showing documents. The LSItemContentTypes key lets you provide an array..

How To Make iPhone App compatible with multiple SDK (firmware) versions

http://stackoverflow.com/questions/3027120/how-to-make-iphone-app-compatible-with-multiple-sdk-firmware-versions

a 4.0 device. Of course you have to gracefully handle working on older versions by either using older methods or not supporting particular features that need newer SDK support. NEW w XCode 4.2 To support older devices you need to add armv6 to the.. working on older versions by either using older methods or not supporting particular features that need newer SDK support. NEW w XCode 4.2 To support older devices you need to add armv6 to the build architectures and remove armv7 from the plist.. by either using older methods or not supporting particular features that need newer SDK support. NEW w XCode 4.2 To support older devices you need to add armv6 to the build architectures and remove armv7 from the plist of required device capabilities...

Install xCode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can't see other SDKs

http://stackoverflow.com/questions/3161385/install-xcode-3-2-3-w-iphone-sdk-4-get-base-sdk-missing-cant-see-other-sdk

and updates to existing applications must be built with iPhone SDK 4. Please note the App Store will no longer support applications that target iOS 2.x. Presumably I'm guessing here iPad only and universal apps should use the 3.2 SDK. That.. OS 3.0 but not lower . The SDK you use to compile does not limit downward what iOS version you can program to or support. Once you've patched things up in your project etc. cf. next section you can set iPhone OS Deployment Target to a lower.. no longer be enforcing your compliance to 3.0 only calls nor does it have a simulator for these. And if you want to support 4.0 features you'll have to do some conditional code to prevent crashes on 3.0 devices. Fun. You can still download from..

Can I embed a custom font in an iPhone application?

http://stackoverflow.com/questions/360751/can-i-embed-a-custom-font-in-an-iphone-application

an answer that solved the question as asked the solution that involves coding your own UILabel subclass doesn't support word wrap which is an essential feature for me though I guess I could extend it to do so. iphone ios cocoa touch fonts.. cocoa touch fonts share improve this question Edit As of iOS 3.2 this functionality is built in. If you need to support pre 3.2 you can still use this solution. I created a simple module that extends UILabel and handles loading .ttf files...

How do I do base64 encoding on iphone-sdk?

http://stackoverflow.com/questions/392464/how-do-i-do-base64-encoding-on-iphone-sdk

do I do base64 encoding on iphone sdk I'd like to do base64 encoding and decoding but I could not find any support from the iPhone SDK. How can I do base64 encoding and decoding with or without a library iphone objective c ios ipad base64..

How do I create delegates in Objective-C?

http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c

on it. Apple recommends this method because it is more precise doesn't mess with NSObject and can provide better tool support. Speed Optimizations Instead of checking whether a delegate responds to a selector every time we want to message it you..

Is there a good charting library for iPhone? [closed]

http://stackoverflow.com/questions/769749/is-there-a-good-charting-library-for-iphone

iPhone. Core Plot also encompases many other use cases including desktop systems but its design has included iPhone support from the beginning. It's getting pretty close to useable and is currently in use in several shipping iPhone and OS X applications...

Creating an SQLite3 database file through Objective-C

http://stackoverflow.com/questions/10540728/creating-an-sqlite3-database-file-through-objective-c

following errors 2012 05 10 14 58 38.169 CCoDBTry 355 f803 Opened sqlite database at Users Matt Library Application Support iPhone Simulator 5.1 Applications 5DB7A218 A0F6 485F B366 91FD2F9BC062 Documents tblStore.sqlite 2012 05 10 14 58 38.307..

Checking memory allocation in Instruments

http://stackoverflow.com/questions/1061235/checking-memory-allocation-in-instruments

Where does the iPhone Simulator store its data?

http://stackoverflow.com/questions/1108076/where-does-the-iphone-simulator-store-its-data

with a number for each of the legacy iPhone OS iOS versions it can simulate so the path becomes ~ Library Application Support iPhone Simulator OS version Applications appGUID if you have the previous SDK installed alongside its 3.1.x simulator will..

Easy way to see saved NSUserDefaults?

http://stackoverflow.com/questions/1676938/easy-way-to-see-saved-nsuserdefaults

You can find the pList file for your app in the simulator if you go to users your user name Library Application Support iPhone Simulator Sim Version Applications This directory has a bunch of GUID named directories. If you are working on a..

Any way to pre populate core data?

http://stackoverflow.com/questions/2230354/any-way-to-pre-populate-core-data

the default managed objects you want to the store. Then run that app in the simulator. Now go to ~ Library Application Support iPhone Simulator User Applications. Find your application among the GUIDs then just copy the sqlite store out into your..

iphone - How do I add videos to iPad simulator?

http://stackoverflow.com/questions/2571656/iphone-how-do-i-add-videos-to-ipad-simulator

How do I add videos to iPad simulator No dropping the videos to ~ Library Application Support iPhone Simulator 3.2 Media DCIM 100APPLE does not work totally because the simulator can see the video on Photos.app but..

Support legacy iPhone users

http://stackoverflow.com/questions/3088624/support-legacy-iphone-users

legacy iPhone users Now that iPhone SDK 4.0 is available for download and iOS 4.0 will be available for consumers shortly..

Can the UI Automation instrument be run from the command line?

http://stackoverflow.com/questions/4191945/can-the-ui-automation-instrument-be-run-from-the-command-line

is the path to your .app file that is created by your simulator. For me the path was Users fwasim Library Application Support iPhone Simulator 5.0 Applications AA6BA2E1 D505 4864 BECC 29ADEE28194D name_of_application.app this path might be different..

What happens to JavaScript code after app is compiled using Titanium Mobile

http://stackoverflow.com/questions/4217551/what-happens-to-javascript-code-after-app-is-compiled-using-titanium-mobile

up in a built app. I grep ed the Xcode project and also the result application as I found it in Library Application Support iPhone Simulator ....KitchenSink.app but I can't find any function names from .js files not even string texts used within..

Adding images to iPhone Simulator

http://stackoverflow.com/questions/468879/adding-images-to-iphone-simulator

displayed in the simulator iphone ios simulator photos share improve this question Go to ~ Library Application Support iPhone Simulator User Media DCIM 100APPLE and add IMG_nnnn.THM and IMG_nnnn.JPG. It doesn't matter if they are not JPEGs..

Xcode 4 failure to symbolicate Crash Log

http://stackoverflow.com/questions/5458573/xcode-4-failure-to-symbolicate-crash-log

Spotlight &rarr Privacy helps ~ Library Developer Xcode DerivedData Xcode 4 build artefacts ~ Library Application Support iPhone Simulator file system for the iPhone Simulator Like this See this blog post for additional detail. Update from a..

Cleaning up the iPhone simulator

http://stackoverflow.com/questions/692064/cleaning-up-the-iphone-simulator

xcode ios simulator share improve this question The simulator installs apps to Users username Library Application Support iPhone Simulator User Applications There are a bunch of GUID files and directories. They match up to the apps you have installed..

What does the Xcode 4.2 preference “Support Wirelessly Connected Devices” do?

http://stackoverflow.com/questions/7266391/what-does-the-xcode-4-2-preference-support-wirelessly-connected-devices-do

does the Xcode 4.2 preference &ldquo Support Wirelessly Connected Devices&rdquo do In Xcode 4.2 there is a new preference under the General tab called iOS Device Discovery.. do In Xcode 4.2 there is a new preference under the General tab called iOS Device Discovery with the checkbox option Support Wirelessly Connected Devices. What does this option do Once checked how can we use this new capability iphone objective.. Summary page and check the Sync with this XXXX over Wi Fi option In XCode XCode menu Preferences General check the Support Wirelessly Connected Devices Unplug your Device On the device go to Settings General iTunes Wi Fi Sync and click Sync Now..

Can I install an app to the simulator without the source code?

http://stackoverflow.com/questions/947317/can-i-install-an-app-to-the-simulator-without-the-source-code

on the same version of the target O S as you you should be fine. Look here on your local machine ~ Library Application Support iPhone Simulator User Applications That is where the apps are stored. Watch this directory and grab everything that is added..

Use NSURLIsExcludedFromBackupKey without crashing on iOS 5.0

http://stackoverflow.com/questions/9620651/use-nsurlisexcludedfrombackupkey-without-crashing-on-ios-5-0

this crash on launch dyld Symbol not found _NSURLIsExcludedFromBackupKey Referenced from Users sam Library Application Support iPhone Simulator 5.0 Applications B0872A19 3230 481C B5CE D4BDE264FBDF Transit.app Transit Expected in Applications Xcode.app.. SDKs iPhoneSimulator5.0.sdk System Library Frameworks Foundation.framework Foundation in Users sam Library Application Support iPhone Simulator 5.0 Applications B0872A19 3230 481C B5CE D4BDE264FBDF Transit.app Transit Here's my method BOOL addSkipBackupAttributeToItemAtURL..

Is there a way to downgrade from iOS 5.1 to iOS 5.0? [closed]

http://stackoverflow.com/questions/9649313/is-there-a-way-to-downgrade-from-ios-5-1-to-ios-5-0

Xcode 4.2 can be made to work with iOS 5.1 devices. Download Xcode 4.3 from here . Copy the 5.1 SDK and Device Support folders from the 4.3 installer into your Xcode 4.2 folder. The former goes into Platforms iPhoneOS.platform Developer SDKs..