完成处理程序似乎对所有其他共享类型(Twitter,Mail)都能正常工作,但对于Facebook,即使取消共享(首先点击Facebook图标),完整BOOL也是YES。
UIActivityViewController *shareActivity = [[UIActivityViewController alloc] initWithActivityItems:@[title, url] applicationActivities:nil];
[shareActivity setCompletionWithItemsHandler:^(NSString *activityType, BOOL complete, NSArray *returnedItems, NSError *activityError) {
if (complete) { //Facebook share is always YES }];
有什么建议吗?
iOS 8.3,安装了Facebook App。