I have my class derived from UITabBar:
@interface MyTabBar : UITabBar
@end
@implementation MyTabBar
@end
Further, in my code, I call class_getInstanceSize for my class and system UITabBar class:
size_t origSize = class_getInstanceSize([UITabBar class]);
size_t mySize = class_getInstanceSize([MyTabBar class]);
I use iOS SDK 4.1. When I run on iPhone Simulator (iPhone 4) i get the same value for origSize and mySize. But if I run on real device with SDK 3.1.3 I get different values, 68 for origSize and 80 for mySize. How can it be?