Sending an email from swift 3

前端 未结 5 2040
广开言路
广开言路 2020-12-25 09:39

I am trying to set up an app with send email option.

I have this code:

import Foundation
import MessageUI
import UIKit

class emailClass: UIViewContr         


        
5条回答
  •  醉梦人生
    2020-12-25 10:22

    It will not work with simulator. Please test it on iPhone device. You can refer Apple Developer Portal - MFMailComposeViewController

提交回复
热议问题