我正在尝试使用
请帮忙解决这个问题,提前感谢。
UIActivityViewController
在Facebook/Twitter上发布带有预先填充文本的内容。但是我无法填充预先填充的文本,以下是我的示例代码。UIImage* shareImage = [self saveVersionGraphicsAndThumbnailImage:self.drawingView];
NSString* message = @"My post - ";
NSArray* shareItems = @[message, shareImage];
UIActivityViewController * avc = [[UIActivityViewController alloc] initWithActivityItems:shareItems applicationActivities:nil];
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")) {
UIPopoverPresentationController *presentationController = [avc popoverPresentationController];
presentationController.sourceView = sender;
}
[self presentViewController:avc animated:YES completion:nil];
请帮忙解决这个问题,提前感谢。