Merge pull request #318 from tomasfejfar/nonexistent-email-account-fix

iOS > EmailComposer > FIX: Without email account there is an error, that...
This commit is contained in:
Shazron Abdullah
2012-03-06 10:46:42 -08:00

View File

@@ -61,8 +61,9 @@
// NSData *myData = [NSData dataWithContentsOfFile:path];
// [picker addAttachmentData:myData mimeType:@"image/png" fileName:@"rainy"];
[[ super appViewController ] presentModalViewController:picker animated:YES];
if (picker != nil) {
[[ super appViewController ] presentModalViewController:picker animated:YES];
}
[picker release];
}