#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
NSRect r=NSMakeRect(10, 5, 100, 200);//NSRect其实就是CGRect
//这种方式比较常见
NSRect r2=CGRectMake(10, 5, 100, 200);
NSLog(@"%@",NSStringFromRect(r2));
}
return 0;
}