好日子所有;iOS上的CALayer或UIView backgroundColor UIImage 4
我不知道发生了什么变化,以防止这种工作。在iOS 3 SDK,下面的代码在CATiledLayer类工作得很好:
- (void)drawInContext:(CGContextRef)context {
UIImage* image = [[ResourcesManager sharedResourcesManager] getUIImageFromArray:Image_Cell_Background Index:[mazeCell zone]];
UIColor* color = [[UIColor alloc] initWithPatternImage:image];
[self setBackgroundColor:[color CGColor]];
[color release];
但是,编译为iOS 4和模拟器执行失败要呈现的图像。特别是因为作为子图层添加的图像渲染得很好,我感到非常困惑。只有背景不呈现。愿意花几天后