MFMailComposeViewController in Swift

I compared MFMailComposeResult documentation on both Xcode 5 and Xcode 6. In Swift, MFMailComposeResult is a struct struct MFMailComposeResult { init(_ value: CUnsignedInt) // available in iPhone 3.0 var value: CUnsignedInt } with MFMailComposeResultCancelled as a constant of type MFMailComposeResult: var MFMailComposeResultCancelled: MFMailComposeResult { get } while it’s an enum in Objective-C: enum MFMailComposeResult { … Read more

I have REAL misunderstanding with MFMailComposeViewController in Swift (iOS8) in Simulator

* * IMPORTANT – DO NOT USE THE SIMULATOR FOR THIS. * * Even in 2016, the simulators very simply do not support sending mail from apps. Indeed, the simulators simply do not have mail clients. But! Do see the message at the bottom! Henri has given the total answer. You MUST — allocate and … Read more

tech