I know this question was asked before (for example here and here) but I just can\'t figure out what I\'m doing wrong.
I have an AVMutableComposition
tha
Methods that fixing frames and points
- (CGRect) fixRect:(CGRect)rect inRect:(CGRect)container
{
CGRect frame = rect;
frame.origin.y = container.size.height - frame.origin.y - frame.size.height;
return frame;
}
- (CGPoint) fixPoint:(CGPoint)point fromPoint:(CGSize)containerSize
{
CGPoint frame = point;
frame.y = containerSize.height - frame.y;
return frame;
}
For anyone who has the same problem as I had I've finally found an answer. There is a property of every CALayer
called geometryFlipped
wich you need to set to YES
just before exporting and everything will be ok. More information here.