原始代码如下
self.refundLFrame = CGRectMake(CGRectGetMinX(self.projectNameLFrame), CGRectGetMaxY(self.projectDescLFrame) + tRealLength(7), refundLSize.width + tRealLength(12), refundLSize.height + tRealLength(5));
修改成如下代码即可。在
CGRectMake()
外面套一层CGRectIntegral()
即可。
self.refundLFrame = CGRectIntegral(CGRectMake(CGRectGetMinX(self.projectNameLFrame), CGRectGetMaxY(self.projectDescLFrame) + tRealLength(7), refundLSize.width + tRealLength(12), refundLSize.height + tRealLength(5)));