gpt4 book ai didi

IOS 警告 : Unable to allocate render buffer storage

转载 作者:可可西里 更新时间:2023-11-01 03:21:52 30 4
gpt4 key购买 nike

我有一个简单的 IOS 应用程序。它包括两个工具栏和 map View 。我只使用默认库(没有 cocoa 等)。

当我在真正的 iPhone5s (IOS8.1) 上调试我的应用程序时,当 iPhone 改变方向时,我的控制台中出现“无法分配渲染缓冲区存储!0x1741f2c00”(模拟器没问题)。状态栏在真实设备和模拟器上变成横向时消失,当纵向时返回(这是我的普遍问题)。

应用订阅 UIDeviceOrientationDidChangeNotification。

[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(orientationChanged:) name:UIDeviceOrientationDidChangeNotification object:[UIDevice currentDevice]];

但是文本出现在控制台和状态栏独立于调用消失

-(void)orientationChanged:(NSNotification *)note
{

}

Google 没有帮助我。所有连接到cocoa库错误的链接或我没有使用的一些图形方法。

最佳答案

您可能正在使用约束。如果是这样,您需要删除它们(在 viewDidLoad 中,如果您不想触摸您的 Storyboard/xib),然后在 willRotate 中设置它们。

还有一个answer好像是这样解决的。

关于IOS 警告 : Unable to allocate render buffer storage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26590896/

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