Plz use this code it will be help you
In ipad you have to set actionsheet as popover presentation
UIAlertController *alertController=[UIAlertController alertControllerWithTitle:nil message:@"Select Sorting Type" preferredStyle:(UIAlertControllerStyleActionSheet)];
UIAlertAction *Date_action=[UIAlertAction actionWithTitle:@"Date" style:(UIAlertActionStyleDefault) handler:^(UIAlertAction * _Nonnull action) {
//action on click
}];
UIAlertAction *title_action=[UIAlertAction actionWithTitle:@"Title" style:(UIAlertActionStyleDefault) handler:^(UIAlertAction * _Nonnull action) {
//action on click
}];
UIAlertAction *cancel_action=[UIAlertAction actionWithTitle:@"Cancel" style:(UIAlertActionStyleCancel) handler:^(UIAlertAction * _Nonnull action) {
//action on click
}];
[alertController addAction:Date_action];
[alertController addAction:title_action];
[alertController addAction:cancel_action];
if (Is_IPad) {
UIPopoverPresentationController *popPresenter = [alertController
popoverPresentationController];
//provide source view to actionsheet as popover presentation
popPresenter.sourceView = sender;
popPresenter.sourceRect = sender.bounds;
[self presentViewController:alertController animated:YES completion:nil];
}else{
[self presentViewController:alertController animated:YES completion:nil];
}