0

我在 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
4

1 回答 1

0

这看起来实际上是“wait_fences:未能收到回复:10004003”的副本?

您使用的症状略有不同application:didFinishLaunchingWithOptions:,但最终结果是您在应用程序生命周期中过早触发渲染操作。

于 2012-05-22T20:43:12.950 回答