【发布时间】:2015-07-05 14:40:18
【问题描述】:
拜托,如果我做错了,你能告诉我吗?
NSString *sharedMsg=[NSString stringWithFormat:@"Hello world"];
UIImage* sharedImg=[UIImage imageNamed:@"image"];
NSArray* sharedObjects=[NSArray arrayWithObjects:sharedMsg, sharedImg, nil];
UIActivityViewController *activityViewController = [[UIActivityViewController alloc]
initWithActivityItems:sharedObjects applicationActivities:nil];
activityViewController.popoverPresentationController.sourceView = self.view;
[self presentViewController:activityViewController animated:YES completion:nil];
在运行时,当我选择 Facebook 的图标时,文本丢失,图像正确显示。
我的 xcode 是 6.3.1,在 iPad 上测试。
【问题讨论】:
标签: ios facebook share uiactivityviewcontroller