1

当我尝试初始化的Messenger组件时,我得到以下结果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

Launch Services: Unable to find app identifier com.apple.MobileSMS
2013-07-31 01:27:15.180 Coolist[54111:c07] Application tried to push a nil view controller on target <MFMessageComposeViewController: 0xa38db30>.

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

4

0 回答 0