MFMailComposeViewController behaves differently in iOS 13 simulator and device

后端 未结 3 1823
执笔经年
执笔经年 2020-12-18 18:51

I\'m trying to display MFMailComposeViewController in an app.

if MFMailComposeViewController.canSendMail() {
    let mailComposeViewController          


        
3条回答
  •  死守一世寂寞
    2020-12-18 19:42

    Add this line of code before present it. It will work normal. This a change in iOS 13

    mailController.modalPresentationStyle = .fullScreen
    

提交回复
热议问题