gpt4 book ai didi

ios - 无法关闭从 iOS 8 中的 UIDocumentInteractionController 调用的电子邮件表

转载 作者:可可西里 更新时间:2023-11-01 04:01:49 27 4
gpt4 key购买 nike

我有一个非常简单的测试应用程序,它只包含以下代码,附加到 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];
}

此构建没有问题,并且在 iOS 7 下运行(在第 4 代 iPad 上:A1458),此代码工作正常。

问题是,在 iOS 8 Beta 5 中,如果用户从 UIDocumentInteractionController 中选择“邮件”,则永远无法关闭显示的电子邮件表。点击发送确实发送了邮件,但电子邮件表继续显示。点击取消并选择删除或保存草稿无效。

当使用 Xcode 5.1.1 构建测试应用程序时会出现问题。但是,如果该应用程序是使用 Xcode 6 GM 构建的,则不会出现问题,并且代码可以正常运行。

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

最佳答案

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

我已将它发布到 Radar,但它作为副本被关闭(副本的状态为“打开”),因此推测它是 iOS 8 预发布版本中的错误。

关于ios - 无法关闭从 iOS 8 中的 UIDocumentInteractionController 调用的电子邮件表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25607602/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com