2 bluetooth99 bluetooth99 于 2013.01.04 15:48 提问

核心动画警告:uncommitted CATransaction

警告内容:

CoreAnimation: warning, deleted thread with uncommitted CATransaction; created by:
0   QuartzCore                          0x3763c65d <redacted> + 220
1   QuartzCore                          0x3763c541 <redacted> + 224
2   QuartzCore                          0x3763fe2f <redacted> + 30
3   QuartzCore                          0x3763b9bf <redacted> + 318
4   QuartzCore                          0x3763b87b <redacted> + 50
5   QuartzCore                          0x3763b80b <redacted> + 538
6   Kepplr                              0x000df597 -[CommonClass orangeGradient:] + 382
7   Kepplr                              0x000f70e1 -[HomeViewController updateStatusBar] + 1700
8   Kepplr                              0x000f61bd -[HomeViewController statusRecieved] + 224
9   Kepplr                              0x000cd323 -[CommonClass statusReceivedFromServer] + 142
10  Kepplr                              0x000d833d -[CommonClass accountStatus] + 7416
11  Foundation                          0x35a3767d <redacted> + 972
12  libsystem_c.dylib                   0x35c9a311 <redacted> + 308
13  libsystem_c.dylib                   0x35c9a1d8 thread_start + 8

栈顶的方法是:

- (void)orangeGradient: (UILabel *)fillLabel {
@synchronized([CommonClass class]) {
CAGradientLayer * gradientLayer = [CAGradientLayer layer];
gradientLayer.frame = fillLabel.bounds;
gradientLayer.colors = [NSArray arrayWithObjects:(id)[UIColorFromRGB(0xfbb250) CGColor],(id)[UIColorFromRGB(0xf47c2a) CGColor], nil];
[fillLabel.layer addSublayer:gradientLayer];
}
}

请高手指点,谢谢

1个回答

wangyaninglm
wangyaninglm   Ds   Rxr 2015.01.13 22:18
BraveHeartKing
BraveHeartKing 就一个SB
10 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!