这是我的效果:

这是我要达到的效果:

我的代码:
  CGFloat circularLabelWidth = 10;
        UILabel *circularLabel = [[UILabel alloc] initWithFrame:CGRectMake(CELL_HEIGHT_FOOT_LEFTX/2 - circularLabelWidth/2, Height_Section_Header/2 - circularLabelWidth/2, circularLabelWidth, circularLabelWidth)];
        circularLabel.backgroundColor = self.footPrintTableView.backgroundColor;
        circularLabel.layer.cornerRadius = circularLabelWidth/2;
        circularLabel.layer.masksToBounds = YES;
        circularLabel.layer.borderColor = [UIColor whiteColor].CGColor;
        circularLabel.layer.borderWidth = circularLabelWidth/4;
        [headerLabel addSubview:circularLabel];
主要是他那个圆环,我不知道怎么折腾了。有给点提示吗?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
构思一下
1个正方形方块+1个圆环
开始
假设cell的背景色为
#define CELLBGCOLOR [UIColor colorwith......]再简单一点?