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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

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

c# - Search and Add Comment with OpenXML for Word -