Just wanted to know if overriding UITabBarController would get my app rejected? Is it allowed by Apple??
Any of you have submitted an app by overriding UITabBarController??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
It won’t get your app rejected. In general it’s fine to subclass UIKit classes, or any Cocoa Touch class. Apple docs actually recommend subclassing for
UITableViewCellif you can’t get by just using its properties. What gets you rejected is calling private APIs — the ones that exist if you use reflection to inspect UIKit objects, but aren’t in the reference material.However, look closely at the delegate spec for what you’re subclassing. If you can use a partner object better, that’s going to produce more reusable code. In other words, when the SDK gets updated and the API class changes, your code is more likely to still work if you supply a delegate rather than subclassing.