Resolved Deprecated v Removed

Discussion in 'iOS Programming' started by charmofmaking, Feb 6, 2014.

  1. charmofmaking, Feb 6, 2014
    Last edited: Feb 6, 2014

    charmofmaking macrumors member

    Joined:
    Feb 2, 2013
    #1
    Please could someone explain Deprecated in iOS x.x to me?

    I am using a few game kit methods that were deprecated in 5.0 but want to keep them to support 5.0, 6.0 and 7.0.

    In the Apple docs I can find
    Are there any methods that are actually unsupported in iOS 7.0?

    :confused:
     
  2. dantastic macrumors 6502

    dantastic

    Joined:
    Jan 21, 2011
    #2
    It means they have been marked for deletion. Sometimes this happens fast, sometimes not so fast. If something was marked as deprecated as of iOS5 I would probably feel it was fair enough if they dropped it any day now. But there is really no way of telling. There is no schedule as such.

    If you check the deprecated definition if often mentions a replacement method though.
     
  3. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #3
    There's deprecated and there's removed. Deprecated means that it may be removed in the future - it serves as your warning that, though it works in current versions, it may be removed in the very next version. Off the top of my head I can't think of anything specific that's been removed, but I know that Apple has definitely removed some things from OS X's SDK over the years.

    Generally things are deprecated once there's something better available, but they'll generally kick around for several years in a deprecated state before actually being removed.
     
  4. charmofmaking thread starter macrumors member

    Joined:
    Feb 2, 2013
    #4
    Thank you, this makes more sense now.

     
  5. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #5
    Yes, there are. For example, [UIDevice uniqueIdentifier] is no longer supported under iOS 7. Look through the iOS 6.1 to iOS 7.0 API Differences doc and search for the word "removed". You'll find plenty. Most are pretty minor, in my opinion.
     
  6. moonman239 macrumors 68000

    Joined:
    Mar 27, 2009
    #6
    Why would you use methods that are deprecated in 5.0 when you can use the Apple-supported methods that can do what you want them to do?
     
  7. charmofmaking thread starter macrumors member

    Joined:
    Feb 2, 2013
    #7
    Very good, so these would be flagged up by xcode as "removed". I will give it a try tonight.

    Many thanks.



    ----------

    I want to support as far back as iOS 4.2

    So for example reportAchievementWithCompletionHandler: is listed in the ref as
    So if I understand this now, this will work on 4.2 5.0 6.0 7.0 until it changes from "deprecated" to "removed".

     
  8. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #8
    It will always work on 4.2-7.0. It may be removed in 7.1, or 8.0, or anything else after 7.0, or it may never be removed at all. I know the program Apple uses to generate documentation actually allows them to have things like "deprecated from 4.2-7.0" and then unmark it as deprecated for later versions, if they decide that it's more important than they had previously thought - I can't think of anytime Apple has actually utilized that feature, though.
     

Share This Page