Aniket Bhosale
Aniket Bhosale

Reputation: 119

Iphone Rejected Apps

I update my application from version 1.0 to version 1.1 and I submit my iPhone App to Apple a week ago .Few minutes ago I got this Report from Apple that

We found that your app uses one or more non-public APIs, which is not in compliance with the App Store Review Guidelines. The use of non-public APIs is not permissible because it can lead to a poor user experience should these APIs change.

We found the following non-public API/s in your app: setContentToHTMLString.

If you have defined methods in your source code with the same names as the above-mentioned APIs, we suggest altering your method names so that they no longer collide with Apple's private APIs to avoid your application being flagged in future submissions.

Additionally, one or more of the above-mentioned APIs may reside in a static library included with your application. If you do not have access to the library's source, you may be able to search the compiled binary using "strings" or "otool" command line tools. The "strings" tool can output a list of the methods that the library calls and "otool -ov" will output the Objective-C class structures and their defined methods.

These techniques can help you narrow down where the problematic code resides.

Please tell me, What to do to resolve it?

Upvotes: 0

Views: 825

Answers (3)

Antonio MG
Antonio MG

Reputation: 20410

If you are using:

setContentToHTMLString

Don't use it anymore, if its a private API method and Apple doesn't want you to use it

Upvotes: 10

grassyburrito
grassyburrito

Reputation: 1243

setContentToHTMLString is an undocumented method of UITextView. You may need to remove it. You are NOT allowed to access the private API.

Upvotes: 1

apchester
apchester

Reputation: 1144

If you are using a method in the private API, then you will have to find an alternative function. Either from a library or write your own.

If you have written a function named setContentToHTMLString then rename the function (you might like to prefix it- perhaps mySetContentToHTMLString) and change all of the usages over to your new name.

Then you'll be able to resubmit.

Upvotes: 3

Related Questions