Ios MFMessageComposeViewController在某些设备上显示空白白屏

Ios MFMessageComposeViewController在某些设备上显示空白白屏,ios,swift,xcode8,mfmessagecomposeview,Ios,Swift,Xcode8,Mfmessagecomposeview,我正在尝试将MFMessageComposeViewController呈现给具有正文和视频附件的视图控制器。它在10.3.3版本的iPhone 5和11.0.3版本的6s plus上运行良好,但在版本号为10.3.2的iPhone 6s和iPhone 5s上显示白色空白屏幕(无正文,无附件)。我在下面发布我的代码。如果我的代码不正确,请纠正我 func shareVideoWithMessage(视频路径:URL,消息:字符串,viewController:UIViewController,完

我正在尝试将MFMessageComposeViewController呈现给具有正文和视频附件的视图控制器。它在10.3.3版本的iPhone 5和11.0.3版本的6s plus上运行良好,但在版本号为10.3.2的iPhone 6s和iPhone 5s上显示白色空白屏幕(无正文,无附件)。我在下面发布我的代码。如果我的代码不正确,请纠正我

func shareVideoWithMessage(视频路径:URL,消息:字符串,viewController:UIViewController,完成:@escaping(Bool)->()){


嗨,我也面临同样的问题。你找到解决办法了吗
    if (MFMessageComposeViewController.canSendText()) {
        let controller = MFMessageComposeViewController()
        controller.messageComposeDelegate = self

        if dictionary.value(forKey: "isCampaign") as! Bool{
            controller.body = "Campaign by \(dictionary.value(forKey: "username") as! String) on MyApp. Download the my app: www.google.com"
        }
        else{
            controller.body = "Submission by \(dictionary.value(forKey: "username") as! String) on myApp. Download the My app: www.google.com"
        }

        var videoData = Data()

        do{
            videoData =  try NSData(contentsOfFile: (videoPath.relativePath), options: NSData.ReadingOptions.alwaysMapped) as Data
        }
        catch{
            completion(false)
        }

        controller.addAttachmentData(videoData as Data, typeIdentifier: "video/.mp4", filename: "video.mp4")
        viewController.present(controller, animated: true, completion: {
            completion(true)
        })


    }
    else{
        completion(false)

    }

}