gpt4 book ai didi

ios - self.navigationController pushViewController 在 iPad 8.1 上挂起

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:37:32 25 4
gpt4 key购买 nike

虽然以下行适用于 iPhone 7.1/8.1,但在 iPad 上它仅适用于 7.1。在 8.1 上,内存使用量不断上升,直到崩溃:

[self.navigationController pushViewController:detailController animated:YES];

这一行发生在这里:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 
OBDialogDetailViewController* detailController = [[OBDialogDetailViewController alloc] initWithOption:(OBSelectionFilterOption*)option];
[self animateChangeForView:nil atIndexPath:indexPath toRect:CGRectMake(0, 0, 0, 0) andNewHeight:0];
if (self.navigationController)
{
[self.navigationController pushViewController:detailController animated:YES];
}
}

由于我刚刚负责这个应用程序,已经发展了多年并且没有文档,所以我有点绝望。我搜索并尝试了两天的多个答案和解决方案。

请告诉我我可以提供哪些更多信息。

enter image description here

最佳答案

它不会在所有情况下发生。但有几件事我想提一下:

  1. 我试图在 UINavigationController 的目标 View Controller 上播放加密视频(大文件)。当我在 viewDidLoad 中加载视频时,在该 View Controller 的 View 上解密和加载视频的方法需要时间。在这种情况下,请使用以下代码。

    [self performSelectorInBackground:@selector(createVideoPlayer) withObject:nil];[自己执行SelectorInBackground:@selector(createVideoPlayerControllerView) withObject:nil];

  2. 请引用this link管理内存问题,即使您使用的是 ARC。

这可能不会直接回答您的问题,但肯定会帮助您进行调试。请发布您得到的任何解决方案。谢谢。

关于ios - self.navigationController pushViewController 在 iPad 8.1 上挂起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27231826/

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