ios - The app references non-public selectors in Payload/<Appname>.app/<App name>: FailWithError: , topMostAlert -


on apple application uploader got error:

the app references non-public selectors in payload/<appname>.app/<app name>: failwitherror: , topmostalert.

i searched code failwitherror: , topmostalert. didnt find these in code except topmostalert used dismiss uialertview

class uialertmanager = nsclassfromstring(@"_uialertmanager"); uialertview *alertview = [uialertmanager performselector:@selector(topmostalert)]; [alertview dismisswithclickedbuttonindex:0 animated:no]; 

i know error because of using selector in own code or third party code has same name selector marked non-public (apple provided api).

i adding screenshot of framework used in code.

enter image description here

you got rejected because using private class uialertmanager (via _uialertmanager). change code uses public apis , through review process.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -