What constitutes a private API in an iPhone app?

Posted by tweened on Stack Overflow See other posts from Stack Overflow or by tweened
Published on 2010-05-07T20:07:15Z Indexed on 2010/05/07 20:18 UTC
Read the original article Hit count: 138

Filed under:
|
|
|

I'm fairly new to Objective-C and am confused on what falls under the unbrella of a "private API" that could cause Apple to reject my app. Does this include adding methods to existing classes? For example, I found some code on stackoverflow to recolor the tab bar icons for UITabBars with this extension to the UITabBarItem class. Is this considered a "private API"? If not, what does?

@interface UITabBar (ColorExtensions)
- (void)recolorItemsWithImage:(UIImage *)image shadowColor:(UIColor *)shadowColor shadowOffset:(CGSize)shadowOffset shadowBlur:(CGFloat)shadowBlur;
@end

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about apple