UIActivityViewController Messenger无法在iOS模拟器上运行

时间:2013-07-31 05:28:04

标签: ios objective-c ios-simulator uiactivityviewcontroller

当我尝试初始化Messenger的{​​{1}}组件时,我得到以下结果:

enter image description here

我正在使用此代码来实例化我的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

这只是一个模拟器问题吗?

0 个答案:

没有答案