Does calling [super init] do the same thing in a category as a subclass? If not, what\'s the difference?
Given the below example, super will call UIView init (not UINavigationBar init method)
@implementation UINavigationBar (ShadowBar)
- (void)drawRect:(CGRect)rect {
//draw the shadow ui nav bar
[super init];
}
@end
If you subclass it, [super init] will call UINavigationBar init method.
So yes, if there are additional things you will do in UINavigationBar init (extra from UIView) they do different things.