Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8924175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:20:22+00:00 2026-06-15T07:20:22+00:00

this may be a little bit of a dump question but how do you

  • 0

this may be a little bit of a dump question but how do you handle backwards compatibility facing all the depreciations in iOS6? I’m currently unsure how to handle them myself.

Examples:

UITextAlignment is deprecated, but using NSTextAlignment will not work on devices using iOS 5 and prior

dismissModalViewControllerAnimated: is deprecated as well in favor of dismissViewControllerAnimated: completion:

So how could/should one maintain compatibility to older iOS versions? Are there ways to test older versions in XCode 4.5 simulator?

Thanks for any advice!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T07:20:23+00:00Added an answer on June 15, 2026 at 7:20 am

    To get all deprecated methods in your code just set the deployment target of you application to iOS 6.0, and compile your code, then you will get a warning for each deprecated method.

    In order to solve the deprecation use one of the following:

    1-

    float systemVersion = [[[UIDevice currentDevice]systemVersion]floatValue];
    
    
        if(systemVersion < 6.0)
        {
            calendarArray = [self.eventStore calendars];
        }
        else
        {
            calendarArray = [self.eventStore calendarsForEntityType:EKEntityTypeEvent];
        }
    

    2- USer respondToSelecter method to detect if the object respond to such selector.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question may seem a little bit stackoverflow-implementation specific, but I have seen a
I know this question may be a little bit common and over asked but
I know this may sound silly little bit, but there is no other way
This title may sound a little bit crazy, but this is what is making
I realize something like this has been asked, but this may be a little
This problem may be a little broad, but I'm going to go ahead and
This may be a stupid question but I have a code with the following
This may be a simple question but I can;t find the answer anywhere. Here
this may seem a little odd, but it would make for a convenient way
This may be a little bit of a hard one to pin down exactly,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.