に却下される前に:Actionsheetポップオーバーの背景trunsポップオーバーは、次を使用したIOS 9
[self.actionSheetPostOptions showFromBarButtonItem:self.navigationItem.rightBarButtonItem animated:YES];
も
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil
message:nil
preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertAction *actnCamera = [UIAlertAction actionWithTitle:@"Camera" style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action) {
}];
UIAlertAction *actnLibrary = [UIAlertAction actionWithTitle:@"Library" style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action) {
}];
[alertController addAction:actnLibrary];
[alertController addAction:actnCamera];
[alertController setModalPresentationStyle:UIModalPresentationPopover];
UIPopoverPresentationController *popPresenter = [alertController
popoverPresentationController];
popPresenter.barButtonItem = self.navigationItem.rightBarButtonItem;
[self presentViewController:alertController animated:YES completion:nil];
を試みたが、却下しながら、まだ同じ問題を取得。
更新iOSの11:あなたも、実際のデバイス上でこれを試したことがあり、この問題は、もはや
同じ問題があります。私にとっては、画面の右側から左に位置を変えるとうまくいきます。どんな更新? –
私の場合、Popoverは右ボタンからのものでなければなりません。プレゼンテーションでビューアニメーションを無効にする回避策が追加されました。却下後に戻ることができます。それは私の問題を解決しました。 – Nookaraju
ここに同じ問題があります。ビューアニメーションをどのように無効にしましたか? – fabb