开发者

How to implement sharing via Twitter, mail & Tumblr using ShareKit

开发者 https://www.devze.com 2023-03-08 18:58 出处:网络
I am trying to use ShareKit to implement sharing via Twitter, mail & Tumbler but I am unable to make them work correctly.

I am trying to use ShareKit to implement sharing via Twitter, mail & Tumbler but I am unable to make them work correctly.

I implemented the following code on view load,

SHKItem *item;
item=[SHKItem image:[UIImage imageNamed:@"ico开发者_Go百科n2.png"] title:@"Praveen"];
[SHKFacebook shareItem:item];

Please help me..


Try these following lines ;) it works for me :)

    NSString *imageName=[NSString stringWithFormat:@"marriage0.jpg"];
    NSString *message=[NSString stringWithFormat:@"%@",self.myMessage.text];
    UIImage *image =[UIImage imageNamed:imageName]; 
    SHKItem *fbItem = [SHKItem image:image title:message]; 
    [SHKFacebook shareItem:fbItem];
0

精彩评论

暂无评论...
验证码 换一张
取 消