当我尝试初始化Messenger
的{{1}}组件时,我得到以下结果:
我正在使用此代码来实例化我的UIActivityViewController
:
UIActivityViewController
当我尝试使用 NSString *textToShare = @"Text that will be shared";
NSArray *itemsToShare = [[NSArray alloc] initWithObjects:textToShare, nil];
UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:itemsToShare applicationActivities:nil];
activityVC.excludedActivityTypes = [[NSArray alloc] initWithObjects: UIActivityTypePrint, UIActivityTypeCopyToPasteboard, UIActivityTypeAssignToContact, UIActivityTypeSaveToCameraRoll, UIActivityTypePostToWeibo,UIActivityTypePostToFacebook,UIActivityTypePostToTwitter, nil];
[activityVC setValue:@"My Subject Text" forKey:@"subject"];
[self presentViewController:activityVC animated:YES completion:nil];
Message
这只是一个模拟器问题吗?