将所有坐标存到数组集合中

2021-09-09  本文已影响0人  Qy_iOS

// 将所有 圆点的坐标存到数组中

    NSValue *nsValue = [NSValue valueWithCGPoint:point];

    [_btnPointArr addObject:nsValue];

//将NSValue转换成CGRect原来类型的数值

    CGRect rect = [[array objectAtIndex:0] CGRectValue] ;

    UILabel *lableTest = [[UILabel alloc] initWithFrame:rect]  ;

上一篇下一篇

猜你喜欢

热点阅读