结构体 转 字符串
NSString NSStringFromCGPoint(CGPoint point);
NSString NSStringFromCGVector(CGVector vector);
NSString NSStringFromCGSize(CGSize size);
NSString NSStringFromCGRect(CGRect rect);
NSStringFromCGAffineTransform(CGAffineTransform transform);
NSString NSStringFromUIEdgeInsets(UIEdgeInsets insets);
NSString NSStringFromUIOffset(UIOffset offset);
字符串 转 结构体
*CGPoint CGPointFromString(NSString string);
*CGVector CGVectorFromString(NSString string);
*CGSize CGSizeFromString(NSString string);
*CGRect CGRectFromString(NSString string); //我们在监听高度变化时需要用这个 ,获取键盘的frame 值,就是从一个 string类型中取出 CGRect!
*CGAffineTransform CGAffineTransformFromString(NSString string);
*UIEdgeInsets UIEdgeInsetsFromString(NSString string);//距离边界的距离,上左下右的顺序!
*UIOffset UIOffsetFromString(NSString string);
网友评论