Private API?

Discussion in 'iOS Programming' started by iLoveDeveloping, Aug 12, 2010.

  1. macrumors regular

    Joined:
    Sep 24, 2009
    Location:
    Ireland
    #1
    Hi,

    I wanted to change the image of my TabBar and wondering if this code is a private API, i guessed it was seen as the private was in it, but am i wrong?

    @interface UITabBarController (private)
    - (UITabBar *)tabBar;


    If so, is there anything that can change the background image of the TabBar without breaking any API's?
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    If the method is not listed in the documentation on Apple's developer website then it's a private API.
     
  3. macrumors 6502

    Joined:
    Nov 30, 2005
    #3
    To expand on robbieduncan's comment, the publicly published API documents are the way to tell what is public and what isn't.

    Luckily for you, the tabBar property of a UITabBarController is public API, see: here.
     

Share This Page