【发布时间】:2014-11-23 13:30:33
【问题描述】:
#import "AppDelegate.h"
#import <MapKit/MapKit.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions
{
[self setWindow:[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]];
[self.window makeKeyAndVisible];
UIViewController *vc = [[UIViewController alloc] init];
self.window.rootViewController = vc;
vc.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
MKMapView *map = [[MKMapView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
map.autoresizingMask = UIViewAutoresizingFlexibleHeight;
[vc.view addSubview:map];
return YES;
}
@end
要查看问题,请运行上述代码并旋转设备。 您将遇到旋转动画的明显延迟。
如果您连接 iOS8 iPad 并运行模拟器, 您将收到以下警告:
崩溃! 0x15dd7980
错误 /SourceCache/VectorKit/VectorKit-992.16/GeoGL/GeoGL/GLCoreContext.cpp 1237:帧缓冲区不完整,附件不完整
有人知道如何解决这个问题吗?
【问题讨论】:
-
我遇到了同样的问题和错误。转换为使用 AutoLayout 以解决它。如果有人就此向 Apple 提交错误,那就太好了。
-
@AmitP 您可以在此处向 Apple 提交错误报告:developer.apple.com/bug-reporting 另外,请在此处复制您的错误报告,以便开发人员社区的其他人可以看到:openradar.appspot.com
标签: ios8 mapkit framebuffer autoresize