美文网首页
将所有坐标存到数组集合中

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

作者: Qy_iOS | 来源:发表于2021-09-09 15:20 被阅读0次

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

        NSValue *nsValue = [NSValue valueWithCGPoint:point];

        [_btnPointArr addObject:nsValue];

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

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

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

    相关文章

      网友评论

          本文标题:将所有坐标存到数组集合中

          本文链接:https://www.haomeiwen.com/subject/yfniwltx.html