I have a subclass of UIView in which I am doing some custom drawing. When drawRect:(CGRect)rect receives a call to rect.size , it is either (64, 63) or (63, 64); self.frame.size - (64, 64).
I have several instances of this subclass, most of which get the expected (64, 64) size for the drawRect parameter.
What conditions may cause some of these subclasses to have modified drawRect boundaries, but not others?
Extra tidbits:
- self.opaque NO
- self.transform is changing; I use it to rotate a UIView in increments of 90 degrees, but rotating the view does not change
rect.size to sub calls on drawRect
source share