I am just wondering that Is there anyway to set UISearchBar
or UISearchDisplayController
to UIActionSheet
in iOS App?
UIActionSheet is deprecated, its replacement is UIAlertController. I don't think I'd try putting a UISearchBar on it though.
I'd use a regular UIViewController with modalPresentationStyle set to UIModalPresentationPopover, and then present it as a popover using its popoverPresentationController property. This method requires at least iOS 8.