1

We have submitted an app to the app store and Apple send us a review note that

The App is using a private API: _tableView

I have tested in my code. I am not sure what exactly Apple is asking us to change.

I just used https://github.com/shiki/STableViewController for pull to refresh. Help me please as soon as possible.

Kara
  • 6,115
  • 16
  • 50
  • 57
Irfan
  • 51
  • 1
  • 8

2 Answers2

1

The process of determining whether your app uses Private APIs is probably not as simple as you might expect.

It is possible for Apple to falsely identify your app as containing Private API usage, even when it doesn't.

This can happen if you write code that has naming conflicts with code in the Apple frameworks. I'm wondering if the Apple process isn't getting stuck on this in STableViewController.h:

@property (nonatomic, retain) UITableView *tableView;

That's probably not the best name (even though it makes sense that a table view controller would have a tableView property), because UITableViewController has a property with the same name.

You might try simply editing the STableViewController source code yourself, and renaming that property (e.g. to sTableView, or something more unique):

@property (nonatomic, retain) UITableView *sTableView;

(and, of course, refactoring the code to change all usage of that property, too)

Community
  • 1
  • 1
Nate
  • 31,017
  • 13
  • 83
  • 207
0

I can't see where STableViewController is using _tableView. But why are you using it? What's wrong with UIRefreshControl?

UIRefreshControl iOS 6 xcode

Community
  • 1
  • 1
Abhi Beckert
  • 32,787
  • 12
  • 83
  • 110
  • Maybe Deniel needs to support iOS 5. – Jesper Aug 26 '13 at 07:58
  • I would use UIRefreshControl on iOS 6 and put a "refresh" button in the navigation bar or something on iOS 5. Not pretty, but it works and you don't have to rely on third party code that may be buggy or cause you to violate the developer terms/conditions without realising it. – Abhi Beckert Aug 26 '13 at 08:09
  • 2
    That does not really solve the problem, does it @AbhiBeckert? Maybe you want to try a better maintained project like: https://www.cocoacontrols.com/controls/isrefreshcontrol instead of one that has not been updated for 2 years. – Sebastian Borggrewe Aug 26 '13 at 08:40
  • Our requirement is Pull up for more items so that's why we used this code. – Irfan Aug 26 '13 at 08:47
  • Personally I would never ship any iOS app where I "require" any third party library, unless the library is bundled with iOS. I would treat STableViewController and ISRefreshControl as sample code only, and implement it myself - or else don't have pull to refresh in the app. That way you will avoid situations like this one, where you have an unexpected problem that cannot be solved easily. Almost every third party library I have ever used in my entire career has eventually ended up being a mistake. – Abhi Beckert Aug 26 '13 at 08:49