setSearchDisplayController considered private-API?

前端 未结 3 1170
爱一瞬间的悲伤
爱一瞬间的悲伤 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条回答
  •  野性不改
    2021-01-23 22:24

    Is -setSearchDisplayController: mentioned anywhere in the documentation (I don't think it is)? If it is not then it's not a public API.

    The fact that you have to use -performSelector:withObject: and can't call it directly is another giveaway. -setSearchDisplayController obviously isn't included in any header files.

提交回复
热议问题