ideashower / ShareKit

Drop in sharing features for all iPhone and iPad apps

Home Page:http://getsharekit.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to send Email through ShareKit

gargksanjeev opened this issue · comments

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,

what are the errors reported?