Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting CGAffineTransform to NSString

Tags:

iphone

i want to save transform applied to uiview offline so i could retain the changes for later usage. Thanks in advance.

like image 615
Kumaran Avatar asked Aug 27 '11 13:08

Kumaran


1 Answers

NSString to CGAffineTransform

CGAffineTransformFromString(NSString *string);

CGAffineTransform to NSString

NSStringFromCGAffineTransform(CGAffineTransform transform)

Example:

CGAffineTransform transform=CGAffineTransformFromString(likeBelowNSString);

NSString *transformAsNSString=NSStringFromCGAffineTransform(transform);

Unfortunately, these are not available on OS X.

like image 95
Vijay-Apple-Dev.blogspot.com Avatar answered Oct 04 '22 21:10

Vijay-Apple-Dev.blogspot.com