rizumita/CTFeedbackSwift

iPadでAttachmentCellを選択すると落ちます

tgk1 opened this issue · 3 comments

tgk1 commented

iPadで「フィードバック添付画像を選択」をタップすると落ちます。

func showAttachmentActionSheet(deleteAction: (() -> ())?)で

        alertController.addAction(UIAlertAction(title: CTLocalizedString("CTFeedback.Cancel"),
                                                style: .cancel))
        
        let screenSize = UIScreen.main.bounds
        alertController.popoverPresentationController?.sourceView = viewController?.view
        alertController.popoverPresentationController?.sourceRect = CGRect(x: screenSize.size.width/2, y: screenSize.size.height/2, width: 0, height: 0)
        alertController.popoverPresentationController?.permittedArrowDirections = .init(rawValue: 0)

        viewController?.present(alertController, animated: true)

だと、とりあえず回避できました。

I am wondering about this too

@tgk1 @alexrabin
I'm sorry that the changes are late. I have released the revised version as version 0.1.5. Please test it.

tgk1 commented

iPadで落ちないことを確認しました。
ありがとうございます。