문제

I was wondering if it was possible to have a search bar and search display controller without having a table view on the same view. If this is possible, I would really appreciate it if you would please respond.

도움이 되었습니까?

해결책

It works just fine without a table view. The UISearchDisplayController instance needs a searchResultsDatasource and delegate, which are really UITableView datasource and delegate.

Since these implementations are present in UITableViews, they are often reused as the implementations for the search controller, but that needn't be the case.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top