查看这个非常基本的iPad应用程序:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
con = [[LaunchViewController alloc] init];
[self.window setRootViewController:con];
[self.window makeKeyAndVisible];
return YES;
}
LaunchViewController
只是一个空白的ViewController,具有以下方法:
- (void)viewDidLoad {
MFMailComposeViewController *emailDialog = [[MFMailComposeViewController alloc] init];
}
当我运行程序时,我收到错误:_serviceViewControllerReady:error: Error Domain=_UIViewServiceInterfaceErrorDomain Code=1 "The operation couldn’t be completed. (_UIViewServiceInterfaceErrorDomain error 1.)
答案 0 :(得分:1)
重启iPad和Xcode解决了这个问题。我对Apple感到失望......