#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并运行模拟器,
你会收到这些警告:
Crash! 0x15dd7980
ERROR /SourceCache/VectorKit/VectorKit-992.16/GeoGL/GeoGL/GLCoreContext.cpp 1237: Framebuffer incomplete,incomplete attachment
有谁知道如何解决这个问题?