1.NSRange 区间、范围
NSRange range = {1,2};
range.location = 2; //location:开始的位置
range.length =3; //length:长度
NSLog(@"%@",NSStringFromRange(range));
CGPoint point;
point.x = 1; //x:x坐标
point.y = 2; //y:y坐标
point = CGPointMake(3, 4);
NSLog(@"%@",NSStringFromPoint(point));
3.NSSize/CGSize 大小、尺寸
CGSize size;
size.height = 1; //height:高度
size.width = 2; //width:宽度
size = CGSizeMake(5, 6);
NSLog(@"%@",NSStringFromSize(size));
4.NSRect/CGRect 矩形的位置和大小
CGRect rect;
rect.size = (CGSize){1,2}; //矩形的大小
rect.origin = (CGPoint){3,4}; //矩形的原点坐标
rect = CGRectMake(5, 6, 7, 8);
NSLog(@"%@",NSStringFromRect(rect));