我希望能夠共享我擁有的一個NSMutableArray中的所有圖像,因此當用戶正在查看他們想要共享的圖片時,它會發送他們當前正在查看的圖片該陣列使用共享工具發佈圖像
UIImage *image = [UIImage imageNamed:@"Cats"];
SHKItem *item = [SHKItem image:image title:@"Take a look at this!"];
// Make the ShareKit action sheet
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];
// Display the action sheet
[actionSheet showInView:self.view];
// this is my array I want it my sharekit will respond to all the items in the array
NSMutableArray *images = [[NSMutableArray alloc] initWithObjects:@"Cats.png",@"GWB.png",@"Australia.png",nil];
基本上任何圖片是我目前正在在它的UIImageView總是會發出「cats.png」但是,我希望它發送是在UIImageView的任何圖像在短短的一個畫面。
你可以再看看你的問題。你的描述中似乎缺少一些東西:「它會發送他們當前正在查看的圖片不只是一張圖片」 – nfechner
我想分享數組中的圖片,唯一能夠分享的圖片是使用此圖片的一張圖片:UIImage * image = [UIImage imageNamed:@「Cats」];我怎樣才能讓sharekit共享我陣列中的所有對象 –