#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 ERROR / SourceCache / VectorKit / VectorKit-992.16 / GeoGL / GLCoreContext.cpp 1237:帧缓冲区不完整,附件不完整
有人知道如何解决这个问题吗?