Graham Bell
Graham Bell

Reputation: 1149

Does Apple iOS supports backward compatability?

Hi does Apples iOS is having backward compatability? I'm having a doubt like in iOS 6 apple is introducing many new features like say for an example we have UICollectionView (for Grid) if i use this class & control of iOS6 then is there any flags or settings change or any extra code snippet available for developers so as to support iOS<6 also.

Upvotes: 0

Views: 167

Answers (3)

Maulik
Maulik

Reputation: 19418

You can check UICollectionView's class availability with NSClassFromString function.

A simple example of Twitter :

Class TWTweetComposeViewControllerClass = NSClassFromString(@"TWTweetComposeViewController"); 

if (TWTweetComposeViewControllerClass != nil) 
{
     // this class only available in iOS 5
     // so new code
}
else
{
     // Means older version
}

Upvotes: 2

The iOSDev
The iOSDev

Reputation: 5267

As I found some thing similar to UICollectionView of iOS6 which is working on iOS4.3+ you have to find out or create this type of controls and use them in conditional coding as described in above answers.

Happy Coding :)

Upvotes: 1

Saurabh Passolia
Saurabh Passolia

Reputation: 8109

you definitely need to do conditional coding keeping in mind the available apis on ios version on device which is running the app

Upvotes: 0

Related Questions