常见的三种结构体 是用来设置界面布局的
NSPoint CGPoint 坐标
NSSize CGSize 大小
NSRect CGRect 矩形
NSPoint point = NSMakePoint(100, 20);
NSSize size = NSMakeSize(50, 50);
NSRect rect = NSMakeRect(100, 20, 50, 50);
CGPoint point1 = CGPointMake(100, 100);
CGSize size1 = CGSizeMake(50, 50);
CGRect rect1 = CGRectMake(100, 100, 50, 50
|
|