标签: ios objective-c core-graphics
我试图在运行时绘制一个模式,然后通过调用以下方法清除给定rect中的旧模式:
[self setNeedsDisplayInRect:CGRectMake(10.25f, 10.56f, 13.34f, 15.66f)];
但是当调用- (void)drawRect:(CGRect)rect时,rect的值会被操纵。我明白了:
- (void)drawRect:(CGRect)rect
rect
x=10 y=10 width=14 height=17.
这是一种理想的行为还是我错过了什么?