復(fù)雜構(gòu)造類型轉(zhuǎn)字符串方法:
NSString *NSStringFromCGPoint(CGPoint point);
NSString *NSStringFromCGSize(CGSize size);
NSString *NSStringFromCGRect(CGRect rect);
NSString *NSStringFromUIOffset(UIOffset offset);
NSString *NSStringFromUIEdgeInsets(UIEdgeInsets insets);
NSString *NSStringFromCGVector(CGVector vector);
NSString *NSStringFromCGAffineTransform(CGAffineTransform transform);
字符串轉(zhuǎn)復(fù)雜構(gòu)造類型方法:
CGPoint CGPointFromString(NSString *string);
CGSize CGSizeFromString(NSString *string);
CGRect CGRectFromString(NSString *string);//我們在監(jiān)聽高度變化時需要用這個,獲取鍵盤的frame值,就是從一個string類型中取出CGRect!
UIOffset UIOffsetFromString(NSString *string);
UIEdgeInsets UIEdgeInsetsFromString(NSString *string);//距離邊界的距離,上左下右的順序!
CGVector CGVectorFromString(NSString *string);
CGAffineTransform CGAffineTransformFromString(NSString *string);
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者