MFMailComposeViewController not working iOS 9
<p>I am using xcode 7.3 and using following code to open MfMailComposeViewController and object of mail composer goes nil after alloc init it.</p>

<pre><code>- (void)openMailComposer {
NSString *emailTitle = @"Invite for SpotFit";

MFMailComposeViewController *mailVC = [[MFMailComposeViewController alloc] init];
mailVC.mailComposeDelegate = self;

[mailVC setSubject:emailTitle];
[mailVC setMessageBody:AppLink isHTML:NO];

[self presentViewController:mailVC animated:NO completion:nil];
</code></pre>

<p>}</p>

<p>Please provide any solution for it.
<a href="https://i.stack.imgur.com/0erUg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0erUg.png" alt="screen shot for it"></a></p>