只有在Facebook分享的问题....你能告诉我在哪里犯了错误吗?

时间:2016-08-30 09:04:59

标签: ios objective-c iphone facebook-graph-api uiactivityindicatorview

Facebook文本共享中的问题,如果分享推特或任何社交媒体的工作。在哪里,我犯了一个错误,请告诉我:

NSString *textToShare = [NSString stringWithFormat:@" Hi stackoverflow;

NSArray *objectsToShare = @[textToShare];

UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:objectsToShare applicationActivities:nil];

NSArray *excludeActivities = @[UIActivityTypeAirDrop,
                                             UIActivityTypePrint,
                                   UIActivityTypeAssignToContact,
                                  UIActivityTypeSaveToCameraRoll,
                                  UIActivityTypeAddToReadingList,                                
                                      UIActivityTypePostToFlickr,    
                                       UIActivityTypePostToVimeo];     
           activityVC.excludedActivityTypes = excludeActivities;

 [self presentViewController:activityVC animated:YES completion:nil];

1 个答案:

答案 0 :(得分:0)

  • 我从FB得到答案......

请参阅:We can't share pre-fill text