问题
I am using ShareKit in my iphone app I am currently developing and would like to implement sharing by Facebook, Twitter, Tumblr and by Mail. I have set up everything but the problem is that all of theese options are visible in sharing menu that is displayed when custom share button is tapped except the Mail option so i am not sure what i am doing wrong.
In SHK.m class file in favoriteSharersForType method i've set up favorite sharers this way:
favoriteSharers = [NSArray arrayWithObjects:@"SHKFacebook", @"SHKTwitter", @"SHKTumblr", @"SHKMail", nil];
and only Mail options is not visible, i also tried to set it up with only Mail option as test:
favoriteSharers = [NSArray arrayWithObjects: @"SHKMail", nil];
but even then Mail option isn't displayed.
Does anyone know what i might be doing wrong, any suggestions?
Thanks in advance
回答1:
well are you running your code on simulator or device? if you are running your code on device do you have any email account setup in that device?
来源:https://stackoverflow.com/questions/7240720/mail-sharing-option-not-visible