Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
P M
7,320 PointsUsing a little bit of private API in iOS app
I want to use two private API methods titleForSwipeAccessoryButtonForRowAtIndexPath and swipeAccessoryButtonPushedForRowAtIndexPath to implement a "More" button on table row swipe like in the Mail app, but these methods aren't public for some strange reason. Will my app get rejected just because I use these two methods? Should I really go to lengths to implement this kind of behaviour myself or perhaps Apple could close their eyes on tiny usage like this? Got any experience?
1 Answer
Camilo Castro
Courses Plus Student 2,549 PointsHere's Apple Docs
https://developer.apple.com/appstore/resources/approval/guidelines.html
2.5 Apps that use non-public APIs will be rejected
I recommend looking for another way to do your requirement.
P M
7,320 PointsThanks, I know the rules. But this guy MrAlek says otherwise: For future reference, I got my App Store app approved using the above mentioned, undocumented delegate calls, compiled with the iOS 7.1 SDK. Might mean Apple will make them public in a future release.
Anybody has a similar experience?
Camilo Castro
Courses Plus Student 2,549 PointsWell I think you should try those methods and hope Apple accept your app or make them public in the short term :P
Nic Huang
Courses Plus Student 10,573 PointsNic Huang
Courses Plus Student 10,573 PointsCould you tell me how use private API in projects ? I've class-dump in terminal but don't know what to do next