setSearchDisplayController considered private-API?

前端 未结 3 1132
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-23 22:02

I recently submitted an app for app review but I got rejected because of the use of a private API. I\'m still a bit new to iPhone developing so I was wondering if someone could

3条回答
  •  闹比i
    闹比i (楼主)
    2021-01-23 22:49

    [self performSelector:@selector(setSearchDisplayController:) withObject:searchDisplayController];
    

    Is a private API call and it can cause an app rejection by Apple, I know because it happened to an app I'm working on.

提交回复
热议问题