绘制的第一个圆圈(最里面的一个)是可以的,但随后它们变得越来越不圆?我知道这一定与迭代有关。
//LOAD CIRCLES
circleWidth = 100;
circleHeight = 100;
for (int i = 0; i < 4; i++) {
UIView *circleView = [[UIView alloc] init];
circleView.frame = CGRectMake(0, 0, circleWidth, circleHeight);
circleView.center = self.view.center;
circleView.alpha = 0.7;
circleView.layer.cornerRadius = 50;
circleView.backgroundColor = [UIColor clearColor];
circleView.layer.borderColor = [[UIColor whiteColor] CGColor];
circleView.layer.borderWidth = 3;
circleHeight += 50;
circleWidth += 50;
[self.view addSubview:circleView];
[self.view sendSubviewToBack:circleView];
}