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

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -