我在 application:didFinishLaunchingWithOptions: 方法期间收到“wait_fences: failed to receive reply: 10004003”。
我对 UIWindow 进行了子类化并覆盖了导致错误的 drawRect 方法。但是,我不知道错误试图告诉我什么,为什么会发生以及如何解决它。
- (BOOL) application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
window_ = [[OoviumWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[window_ makeKeyAndVisible];
controller_ = [[AetherController alloc] init];
[window_ setRootViewController:controller_];
return YES;
}
@implementation OoviumWindow
- (id) initWithFrame:(CGRect)rect {
if (self = [super initWithFrame:rect]) {
_image = [[UIImage imageNamed:@"Default-Portrait.png"] retain];
}
return self;
}
// UIWindow ======================================================================================
- (void) drawRect:(CGRect)rect {
[_image drawInRect:_rect blendMode:kCGBlendModeNormal alpha:.05];
}
@end