Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[IPHONEAPP-622]

Probably occurred because of method name collision. Refactored the method name from initWithUrl to initWithMailToUrl.
  • Loading branch information...
commit 6c81535e91a21738b8a2ee189552b730dbb13afd 1 parent 909d2cb
@atreat atreat authored
View
2  Common/MFMailComposeViewController+RFC2368.h
@@ -2,5 +2,5 @@
#import <MessageUI/MessageUI.h>
@interface MFMailComposeViewController (RFC2368)
-- (id)initWithURL:(NSURL*)mailtoUrl;
+- (id)initWithMailToURL:(NSURL*)mailtoUrl;
@end
View
2  Common/MFMailComposeViewController+RFC2368.m
@@ -88,7 +88,7 @@ - (NSDictionary*)scanURL:(NSURL*)url {
return [NSDictionary dictionaryWithDictionary:fields];
}
-- (id)initWithURL:(NSURL*)mailtoUrl
+- (id)initWithMailToURL:(NSURL*)mailtoUrl
{
self = [super init];
View
2  Modules/News/StoryDetailViewController.m
@@ -186,7 +186,7 @@ - (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)re
if ([[url scheme] caseInsensitiveCompare:@"mailto"] == NSOrderedSame) {
if ([MFMailComposeViewController canSendMail]) {
- MFMailComposeViewController *mailController = [[[MFMailComposeViewController alloc] initWithURL:url] autorelease];
+ MFMailComposeViewController *mailController = [[[MFMailComposeViewController alloc] initWithMailToURL:url] autorelease];
mailController.mailComposeDelegate = self;
[self presentModalViewController:mailController animated:YES];
}
Please sign in to comment.
Something went wrong with that request. Please try again.