创建存储点坐标的数组

 // -    创建用来存储point的数组 C语言

    CGPoint point[3] = {{100,180},{38,90},{190,39}};


 // -    创建用来存储point的数组  OC语言

    CGPoint location = {12,23};

    NSMutableArray * arr = [NSMutableArrayarray];

    [arr addObject:[NSValuevalueWithCGPoint:location]];




// mark - CGPoint CGSize

    CGPoint point = {13,15};

    CGSize size = {88,22};

    

// mark - CGRect

    CGRect rect = {{11,13},{12,33}};

    CGRect rect2 = {point,size};

    CGRect rect3 = {point,{13,15}};

    CGRect rect4 = {{12,14},size};

    

    

    CGRect rect5 = CGRectMake(90, 90, 90, 90);



你可能感兴趣的:(创建存储点坐标的数组)