NSString - - 常用结构体与字符串之间的转化(打印时可用)

CGRect、CGSize、UIEdgeInsets、UIOffset、CGPoint、NSRange等

UIGeometry.h 

 1  NSString *NSStringFromCGPoint(CGPoint point);
 2  NSString *NSStringFromCGVector(CGVector vector);
 3  NSString *NSStringFromCGSize(CGSize size);
 4  NSString *NSStringFromCGRect(CGRect rect);
 5  NSString *NSStringFromCGAffineTransform(CGAffineTransform transform);
 6  NSString *NSStringFromUIEdgeInsets(UIEdgeInsets insets);
 7  NSString *NSStringFromUIOffset(UIOffset offset);
 8 
 9  CGPoint CGPointFromString(NSString *string);
10  CGVector CGVectorFromString(NSString *string);
11  CGSize CGSizeFromString(NSString *string);
12  CGRect CGRectFromString(NSString *string);
13  CGAffineTransform CGAffineTransformFromString(NSString *string);
14  UIEdgeInsets UIEdgeInsetsFromString(NSString *string);
15  UIOffset UIOffsetFromString(NSString *string);

NSRange.h

1  NSString *NSStringFromRange(NSRange range);
2  NSRange NSRangeFromString(NSString *aString);

 

posted @ 2017-09-18 12:01  熹微_念  阅读(407)  评论(0编辑  收藏  举报