How to form CGPoint array in Objective C

后端 未结 5 1151
我寻月下人不归
我寻月下人不归 2021-01-31 09:07

I want to get this structure

CGPoint addLines1[] =
{
    CGPointMake(30.0, 150.0),
    CGPointMake(41.67, 145.19),
    CGPointMake(53.33, 103.25),
    CGPointMak         


        
5条回答
  •  广开言路
    2021-01-31 09:41

    I solve my problem doing the next:


    NSMutableArray *myArray = [[NSMutableArray alloc] init];
    [myArray addObject:[NSValue valueWithCGPoint:myPoint]];
    

    Thanks to michael-jensen for the solution!

提交回复
热议问题