当我尝试绘制彼此重叠的矩形时,我遇到了一个奇怪的问题。见下图:如您所见,最上面的线比其他线(底部和垂直线)更直,特别是比分隔矩形的线更直。我使用了以下代码:for(inti=0;i0)dayRect=CGRectMake(i*cellWidth+self.marginX-1,0,cellWidth,cellHeight);elsedayRect=CGRectMake(i*cellWidth+self.marginX,0,cellWidth,cellHeight);CGContextStrokeRect(context,dayRect);}有什么建议吗? 最佳