iPhone - sending an image with Sharekit to Facebook

≯℡__Kan透↙ 提交于 2019-12-03 21:28:09
iProgrammer

USE if (entity.image == nil) instead this if (entity.image = nil) {

if (imageView.image == nil) {
                imageView.image = [UIImage imageNamed:@"fbicon.png"];
                SHKItem *item2 = [SHKItem image:imageView.image title:@"Hi"];
                [SHKFacebook shareItem:item2];
            }
            else {
            SHKItem *item1 = [SHKItem image:imageView.image title:@"Hi"];
            [SHKFacebook shareItem:item1];
            }
Rahul
UIImage *image = imageview.image
SHKItem *item;

item = [SHKItem image:image title:@"Hi"];

[NSClassFromString([NSString stringWithFormat:@"SHKFacebook"]) 
    performSelector:@selector(shareItem:) withObject:item];
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!