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

gcc - MinGW's ld cannot perform PE operations on non PE output file -

How to connect android app to App engine -

hadoop - Running Map Reduce Job shows error - Mkdirs failed to create /var/folders/ -