无法解除从iOS 8中的UIDocumentInteractionController调用的电子表格

Ric*_*ich 6 cocoa-touch ios uidocumentinteraction ios7 ios8

我有一个非常简单的测试应用程序,其中只包含以下代码,附加到UIButton:

- (IBAction)buttonUp:(id)sender {

  // Build file path
  NSString* filePath = [[NSBundle mainBundle] pathForResource:@"testfile"
                                                       ofType:@"txt"];

  NSURL *url = [NSURL fileURLWithPath:filePath];

  m_interactionController = [UIDocumentInteractionController interactionControllerWithURL:url];

  [m_interactionController presentOptionsMenuFromRect:CGRectMake(200, 200, 100, 100)
                                               inView:[self view]
                                             animated:YES];
}
Run Code Online (Sandbox Code Playgroud)

这构建没有问题,并在iOS 7(在第4代iPad:A1458)下运行,这个代码工作正常.

问题是,在iOS 8 Beta 5中,如果用户从中选择"邮件" UIDocumentInteractionController,则显示的电子邮件表永远不会被删除.点击发送确实发送邮件,但电子表格继续显示.点击取消并选择删除或保存草稿无效.

使用Xcode 5.1.1构建测试应用程序时会出现此问题.但是,如果应用程序是使用Xcode 6 GM构建的,则不会出现问题,并且代码工作正常.

上面的代码有什么问题吗?

Ric*_*ich 0

对于我们来说,这个问题并没有出现在 iOS 8 最终发布的版本中。

我已将其发布到 Radar,并且它作为重复项被关闭(重复项的状态为“打开”),因此推测这是 iOS 8 预发行版本中的一个错误。