NSString与CGPoint、CGSize等结构体之间转换的API

阅读更多
原地址: http://blog.sina.com.cn/s/blog_661314940100s443.html

UIKIT_EXTERN NSString *NSStringFromCGPoint(CGPoint point); 
UIKIT_EXTERN NSString *NSStringFromCGSize(CGSize size);
UIKIT_EXTERN NSString *NSStringFromCGRect(CGRect rect); 
UIKIT_EXTERN NSString *NSStringFromCGAffineTransform(CGAffineTransform transform); 
UIKIT_EXTERN NSString *NSStringFromUIEdgeInsets(UIEdgeInsets insets);   
UIKIT_EXTERN CGPoint CGPointFromString(NSString *string); 
UIKIT_EXTERN CGSize CGSizeFromString(NSString *string); UIKIT_EXTERN CGRect CGRectFromString(NSString *string); 
UIKIT_EXTERN CGAffineTransform CGAffineTransformFromString(NSString *string); 
UIKIT_EXTERN UIEdgeInsets UIEdgeInsetsFromString(NSString *string);

你可能感兴趣的:(NSString与CGPoint、CGSize等结构体之间转换的API)