Map Integration in ios6 - objective-c

How can I integrate maps in iOS 6. Will it be supported in earlier iOS versions?
I want to display a map in an app which has to support iOS 5 and newer. How could I do this? In the earlier versions iOS uses Google Maps and in the latest version it uses its own map.
Will anybody help me out?

I don't think there ever was a Google Maps API kit.
Every time a map from Google showed up in an iPhone app, it was through the iOS MapKit API. I think Google was only the maps provider. What they did in iOS 6 was changing their map provider for themselves. So I think upgrading to MapKit in iOS 6 will just require a little maintenance, and not a full rewrite. I'm guessing most of it will run fine on iOS 5.
Note : this is just my own guess, I haven't looked into developing for iOS 6 yet.

For all I've seen MapKit is essentially the same. Under iOS 5 the default map provider will be Google, under iOS 6 it will be Apple. If you specify a custom map provider that will be used in either. Just be sure to test properly in iOS 5.0, 5.1 & 6.

There are some differences on the versions of the framework for iOS 6 and for below iOS 6. I've noticed that the offset value of the annotations is different from

Related

facebook sdk 3.1-ios compatible with ios 5.1 -5?

regards
I have an application that uses the Facebook API for certain features This application should run both 5.1 and 6 ios 5 my question is the Facebook API 3.1 is compatible with iOS 5 and 5.1 thank you very much
Yes it is compatible. Just mark the iOS6 only frameworks as optional to get it working.
EDIT: Here's a screenshot of how you do that.

Cannot test the social framework on a device lower than IOS6

I am working with the social framework. On iPads with IOS6 it works fine.
But when I test it on a device with IOS 5 I get the following error.
dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social
Referenced from: /var/mobile/Applications/3A3020E0-09D7-49DD-96E2-2E0F20C098D2/RacingGenk.app/RacingGenk
Reason: image not found
Can anybody help ?
Kind regards.
Stef
The social framework isn't available before iOS 6, which explains the problems you're having.
What you need to do is weak link the social framework, which will let you use it on iOS 6 but won't cause pre iOS 6 devices to try to load it. To weak link a library you should select your application's target in XCode, go to the Build Phases tab, and under Link Binary with Libraries make sure that the 'Social.framework' entry is set to Optional rather than Required.
The social framework was introduced in iOS 6, but if you want you have sharing ability for facebook, twitter and many other social networks / sites on devices running versions of iOS before 6.0 then feel free to explore sharekit:
http://getsharekit.com/
Its really easy to use and works for both iOS 6 apps and apps running on previous versions of iOS.
That is because the Facebook integration is only available on iOS6. You can however still use facebook using the original Facebook API for < IOS6 devices.

Upgrading App to support iOS 5

I have developed an ios4 app and now want to upgrade it to ios5. What are the sort of things i need to be aware of in terms of the switch being successful and not causing any pains? My most important question is that if i do push a new change to apple, what will ios4 users see when an upgrade is available that supports only ios5 and up? Can they just ignore that update and continue using the ios4 version they had installed? Will the appstore error out if they try to download the ios5 upgrade anyway? What exactly will happen?
Thanks
The biggest change in IOS 5.0 is the ARC project, so if you converted it to ARC it won't work with older devices like 3g (3gs can have ios 5.0 so it's safe).
Other than that, a user that has an iOS 5.0 device (or an upgraded one) would be able to get the update as soon as it is made available from apple store.
Keep in mind that lower end ios 5.0 devices might not have enough memory for the application though, it's the same that applies for ios 3 / ios 4 and sequentially ios 5/ios 6.0.

Twitter integration in iOS 4 & 5 App

I am currently working on app which is supposed to have Twitter integration. The app should also be built so it can be used on iOS 4.3 devices. We'd like to use the built in Twitter Framework on iOS 5 and possibly drop twitter support for iOS 4 devices (not sure about that yet).
The question is: Is this possible? As far as I can tell I can only link statically on iOS builds, which would mean an App built with the Twitter framework can not be run on an iOS 4 device. If this is possible, how would I got about linking the Twitter framework so I can get the app running on iOS 5 with built in Twitter support and ignore the Framework on iOS 4.
It is possible. Apple has introduced weak linking of frameworks that are not supported on older versions. You can get more details regarding weak linking here.
See one more similar question regarding weak linking here.
Hope this solves your problem.

iOS 4.2 SDK download

Does anyone know where I can get the iOS 4.2 SDK for xCode? I cannot find it anywhere on the Apple site.
I am building an App for Verizon Phones which only supports iOS 4.2. I get a runtime error that says 'Symbol not found' for AdInterstitialAd. I am not sure, but I am guessing I am getting that error because I added the iAd.framework from the iOS 4.3 SDK.
To submit an app to the App Store you will always build against the latest SDK which is 4.3. Apple will reject your app if you don't. You can set the deployment version of your app to lower version. And you are correct, AdInterstitialAd is only available in 4.3 or higher. You can still use the ADBannerView in the lower version.
If you want to use AdInterstitialAd in your app, you will have to use weak linking to make sure the framework if avaiable.
For example:
class adClass = NSClassFromString(#"AdInterstitialAd");
If (adClass) {
// do full screen ad stuff
} else if ((adClass = NSClassFromString(#"ADBannerView")) {
// do banner ad stuff
}
Using iAds While Maintaining Backwards Compatibility is a blog that provide some tips for using iAds when it was first announced last year. Some of those tips are this valuable today.
http://www.felixbruns.de/iPod/firmware/