Mail sharing option not visible

丶灬走出姿态 提交于 2019-12-12 02:13:17

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!