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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -