setSearchDisplayController considered private-API?

前端 未结 3 1130
爱一瞬间的悲伤
爱一瞬间的悲伤 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:51

    From Apple's UIViewController doc:

    @property(nonatomic, readonly, retain) UISearchDisplayController *searchDisplayController
    This property reflects the value of the searchDisplayController outlet that you set in Interface Builder. If you create your search display controller programmatically, this property is set automatically by the search display controller when it is initialized.

提交回复
热议问题