如何在iOS中将UISearch栏设置为UiActionSheet?

如何在iOS中将UISearch栏设置为UiActionSheet?,ios,objective-c,uisearchbar,uiactionsheet,uisearchdisplaycontroller,Ios,Objective C,Uisearchbar,Uiactionsheet,Uisearchdisplaycontroller,我只是想知道,在iOS应用程序中,是否有任何方法可以将UISearchBar或UISearchDisplayController设置为UIActionSheet?UIActionSheet已被弃用,其替代品是UIAlertController。但我不认为我会尝试在上面加上UISearchBar 我会使用一个常规的UIViewController,将modalPresentationStyle设置为UIModalPresentationPopover,然后使用它的。此方法至少需要iOS 8。UIA

我只是想知道,在iOS应用程序中,是否有任何方法可以将
UISearchBar
UISearchDisplayController
设置为
UIActionSheet

UIActionSheet已被弃用,其替代品是UIAlertController。但我不认为我会尝试在上面加上UISearchBar


我会使用一个常规的UIViewController,将modalPresentationStyle设置为UIModalPresentationPopover,然后使用它的。此方法至少需要iOS 8。

UIActionSheet已弃用,其替代品为UIAlertController。但我不认为我会尝试在上面加上UISearchBar

我会使用一个常规的UIViewController,将modalPresentationStyle设置为UIModalPresentationPopover,然后使用它的。此方法至少需要iOS 8