ios - How does CALayer geometryFlipped behave exactly? -
let's assume have cgpathref called somepath , i'm doing this:
cashapelayer *shapelayer = [[cashapelayer alloc] init]; shapelayer.path = somepath; shapelayer.geometryflipped = yes;
but reason don't want flip geometry – i'd want this:
cashapelayer *shapelayer = [[cashapelayer alloc] init]; cgaffinetransform fliptransform = ........; shapelayer.path = cgpathapplyaffinetransform(somepath, &fliptransform); shapelayer.geometryflipped = no;
how fliptransform have make layer display same before?
:)
cgaffinetransform fliptransform = cgaffinetransformmakescale(1, -1);
Comments
Post a Comment