I have 2 classes:
XCALayerderived fromCALayerXCATextLayerderived fromCATextLayer
I’ve created XCALayer+FrameMucking.h category that allows me easily adjust XCALayer‘s frame. The thing is that I would like to use it also for XCATextLayer, but without duplicating all the code. Is it possible to use my category for both XCALayer and XCATextLayer?
If you are just changing the frame of
XCALayerandXCATextLayeryou should be able to add a category toCALayersinceframeis a property ofCALayer.