PDA

View Full Version : Private API?




iLoveDeveloping
Aug 12, 2010, 07:05 AM
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?



robbieduncan
Aug 12, 2010, 08:19 AM
If the method is not listed in the documentation on Apple's developer website then it's a private API.

Thomas Harte
Aug 12, 2010, 08:32 AM
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 (http://developer.apple.com/iphone/library/documentation/uikit/reference/UITabBarController_Class/Reference/Reference.html#//apple_ref/occ/instp/UITabBarController/tabBar).