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
Code seems to be good and works fine if the app is running in a real device
MFMailComposeViewController.canSendMail() // returns false for simulators.
You can't test it on simulator,You'll be able to test basic things like UI,How the things are happening on Cancel/Send button clicks.
To test,You have to use a device,The Mail application in the device should be configured with some mail(ex: abc@xyz.com).
Hope that helps.