I got this problem on two different devices on calling this method
- (void)drawRect:(CGRect)rect {
NSLog(@"%@", NSStringFromCGRect(rect));
NSLog(@"F: %@", NSStringFromCGRect(self.frame));
NSLog(@"B: %@", NSStringFromCGRect(self.bounds));
[super drawRect:rect];
}
On iOS8 output is:
{{-1.5, -3}, {74, 22.5}}
F: {{235, 63.5}, {70, 15}}
B: {{0, 0}, {70, 15}}
but iOS7 output is:
{{0, 0}, {70, 15}}
F: {{235, 63.5}, {70, 15}}
B: {{0, 0}, {70, 15}}