How to support iOS5 and ios6 maps in same app? - iphone

What I should do to support both maps in my app ,I mean that iphone with iOS 5 will see google maps and iOS 6 device will see the new maps
I'll be glad to get a link to a tutorial

The choice of the map to load is made by the iOS itself.
You have simply to take care of not using methods added on iOS 6 when you are on iOS 5 (checking if the target responds to selector or using macros to have different code)
The new map support all methods of previous map system. If your project supports iOS 5, you'll see Google Maps when the app is executed on iOS5, and Apple Maps when is executed on iOS6.
A good approach imho, if you are new to iOS programming, is to develop for the iOS 5 target and test on iOS 5 simulator and device. Then, when you move to iOS 6, all should work correctly but on the Apple Maps automagically :-)

google have released their own version of Google maps as an SDK
https://developers.google.com/maps/mobile-apps
https://developers.google.com/maps/documentation/ios/

Related

IOS6 Developed application suppport in ios7?

Hello I am Develop the ios6 supporting application.My thought is ios 6 developed application is compitaple on ios7 or any otherway is available? and also If I developing the application using ios 7 is supporting earlier versions.Give the best solution for me.
An app compiled for iOS 6 runs in a special compatibility mode on iOS 7.
When you compile with Xcode 5 you must support at least iOS 7. By setting the "Deployment Target" you can also support older versions, but if you use features that are only available in iOS 7 you need to check first otherwise your app will crash on iOS 6.
Also note that the various UI components on iOS 7 are different sizes than on iOS 6. You need to cater for that either using Interface Builder (autolayout possibly) or in your code. How to do this is detailed in the iOS 7 Transition Guide.
The easiest solution is to only support iOS 7. The best option depends entirely on your circumstances, customer base, etc.

Possible to still produce iOS6 style apps using xCode 5?

for now I am keeping my app in iOS6 style until I get a chance to update some of the artwork. I am wondering, if I update to xCode 5, is there a way to compile my code so that it will still produce the iOS6 style and install it on my device with iOS7? Getting a bit tiring uploading my code through TestFlight...
It's not the Xcode version that provides the assets, its the iOS SDK.
That means apps which are compiled using iOS 6 SDK and lower will use the older style default assets, however apps which are compiled on iOS 7 SDK will use the new style controls.
Your best bet would be to create assets and style the controls to your specification if you want to use the new Xcode.
No, Apple has changed the look of all system components. As far as I know, it is not possible to force your app to use the old style on iOS 7.
You would get the new look on iOS 7 (when using iOS 7), When your app would run on iOS 6 it would look like it was on iOS 6.
It's pretty simple and straight forward. You don't have to do nothing just make sure it looks good on iOS 7 also.
To be more clear if you use AlertView you would get the new style when your app runs on 7 (with parallax etc.) and old look when run on 6.
My suggestion to you is just test it on iOS 7 and fine tune graphics if needed.

Supporting ios 5 in monotouch applications

I have an application with monotouch ios (iphone/ipad application). in my project option I target ios 6.
now when I want to download my application with a device that run ios 5 itune not allow.
If I change the target version to the 5, Does my app supports ios 6 and 6.1 yet?
Do I need to change my codes to support both of them?
If you target iOS 5 in MonoTouch, your app will work on both iOS 5 and iOS 6 devices. In general, nothing special should be done to support both iOS 5 and iOS 6. Keep in mind though, that some APIs are iOS 6 only, such as the deep Facebook integration. So don't worry much about your code, just make sure that you test your app on devices with different iOS versions.

Simple posts to Facebook and Twitter iOS 5 & 6

I'm currently implementing a simple button that posts to social networking sites (giving my app a little exposure, you know the drill). However, I'm a little confused by all this social networking stuff. On one hand I know iOS 6 has a really nice framework for FB and Twitter (Social.framework) but for iOS 5 it's a little different. iOS 6, I think I've got figured... I find it a little weirder when we go into iOS 5 however. From what I understand Twitter was already integrated into iOS 5 and can be accessed using the Twitter.framework and Account.framework frameworks. What I don't get is in order to support both 5 & 6 for Twitter do I have to use Social.framework, Twitter.framework and Account.framework to support everything? I.e. two different methods depending on iOS version. Or, if I use the latest SDK will iOS 5 twitter work with Social.framework? That Twitter covered.
Now for Facebook, how do I go about posting in iOS 5? I'm pretty sure Social.framework won't work in iOS 5, even if I build the app with latest SDK. Therefore I think it's inevitable that I'll have to have two different methods which run depending on the iOS version installed. Is that correct? If so, how do I go about integrating FB into iOS 5? Do I have to use the SDKs provided by Facebook?
So to summarise my questions if all that was a little wordy.
1) Can I incorporate Twitter-posting into my app using only Social.framework for both iOS 5 & 6, or do I have to do one method using Social.framework (for iOS 6) and then another method using Twitter.framework and Account.framework (iOS 5)?
2) I can use Social.framework for Facebook in iOS 6, but can't for iOS 5, therefore, I have to do two separate methods, one with Social.framework (iOS 6) and then one with the FB SDK (iOS 5), correct?
Thanks in advance, Regards,
Mike
1) Social.Framework is available only on iOS6+ so you have to split between the two frameworks (or you can use only Twitter.Framework even though some methods have been deprecated on iOS6)
2) You can use the Facebook SDK both on iOS5 and iOS6 (latest version for iOS at the time i write this answer is 3.5). The Facebook SDK already takes care of using the user's Facebook account on iOS6 or relying on the Facebook app on iOS5 or iOS6 when the account is not already configured in the phone

How can I deploy app only for iPhone 3Gs,4,4S and skip iPhone5 support?

I want upload app to app store for review but it seems like I need also iPhone 5 screenshots but I don't have app prepared for iPhone 5. Please, how can I deploy app only for iphone 3gs,4,4s?
I find something in Targets/Build Settings/Architectures Standard armv7 and Base SDK is Latest iOS 6.0. Is that what I have to change?
Just for absolute clarity, Apple released an announcement on March 21st 2013 stating that starting May 1st 2013 new apps and app updates MUST be built for iOS devices with Retina display and iPhone apps must also support the 4-inch display on iPhone 5.
You can view the announcement here.
The best solution is to just properly prepare your app for the iPhone 5's display. And no. Changing the base SDK will not help here.
You can't, only apps submitted before iPhone5-release can run in "iPhone 4 mode" on the new iPhone. All updates to apps and newly submitted apps must support the new 4 inch screen.
You cannot exclude the iPhone5 in the target settings and if there were a way to do that, there is no way Apple would approve it. You can remove support for old devices, but never for new ones.
After all, Apple wants as many apps as possible to adapt the new format as soon as possible, and this is what you have to do... don't worry - if you are fairly used to developing to iOS you can do it in just a few hours...
Apple has stated that theY will still (currently) be accepting apps without specific iOS 6 and iPhone 5 support when developed with an Xcode version prior to 4.5, and thus with an SDK 5.1 or earlier. 568h support is specifically not allowed in apps built that way.
Apps built that way will run in letterbox on a 5, or the similar 1X/2X compatibility boxes that the iPad uses for legacy iPhone only apps.
I submitted an app following the release of the iPhone 5 with the latest version of XCode that runs letterboxed on the iPhone 5. Just remove armv7s from your supported architectures.