I've noticed the option in IB to tick that it wants core animation layer
i tick it, and i can add sublayers to it in the awakeFromNib method
but if i try add the sublayers in the initWithFrame or initWithCoder methods the view doesn't have a layer at that time.
if i say self.layer = [[CALayer alloc] init] then i can add sublayers but the layer isn't setup the same way as it is when it comes from IB.
for instance, whatever is in drawRect in the view doesn't get drawn. I don't actually want to use the drawRect method, but that's irrelevant. IB has made a layer differently to how I did and i want to know what it did differently...
i tick it, and i can add sublayers to it in the awakeFromNib method
but if i try add the sublayers in the initWithFrame or initWithCoder methods the view doesn't have a layer at that time.
if i say self.layer = [[CALayer alloc] init] then i can add sublayers but the layer isn't setup the same way as it is when it comes from IB.
for instance, whatever is in drawRect in the view doesn't get drawn. I don't actually want to use the drawRect method, but that's irrelevant. IB has made a layer differently to how I did and i want to know what it did differently...