ideashower/ShareKit — Issue #316: Not able to send Email through ShareKit
Author: gargksanjeev
Created: 2011-11-09 11:43:11+00:00
State: open

Hi,

There is an option on action sheet to send email..However when I click on it...the by default MFMailComposeViewController opens up, but when I fill the "To" field, the email is not sent. Also the sample code provided by ShareKit has errors when I build the app...The following method is giving errors

void SHKSwizzle(Class c, SEL orig, SEL newClassName)
{
Method origMethod = class_getInstanceMethod(c, orig);
Method newMethod = class_getInstanceMethod(c, newClassName);
if(class_addMethod(c, orig, method_getImplementation(newMethod), method_getTypeEncoding(newMethod)))
class_replaceMethod(c, newClassName, method_getImplementation(origMethod), method_getTypeEncoding(origMethod));
else
method_exchangeImplementations(origMethod, newMethod);
}

Please look into this and help me out.

Thanks,