My app uses a lot of programatically positioned CALayers and I use image asset catalogues for all my images. Last night, I upgraded to Xcode 6 to start preparing the app for iPhone 6. However, when I checked in the simulator none of the CALayers seem to be positioned correctly even in the iPad Retina device. So, I'm wondering, does someone have an idea where the problem might be coming from?
I'm doing this sort of thing to position the layers by the way.
-(CALayer *)loadLayer:(CGFloat)x :(CGFloat)y :(CGFloat)width :(CGFloat)height :(NSString *)layerName
{
CALayer *layerToAdd = [[CALayer alloc] init];
[layerToAdd setBounds:CGRectMake(0, 0, width, height)];
[layerToAdd setPosition:CGPointMake(x + width/2, y + height/2)];
layerToAdd.name = layerName;
[self.view.layer addSublayer:layerToAdd];
return layerToAdd;
}
Many thanks.