objective c - Empty method just to call super -



objective c - Empty method just to call super -

should add together empty method phone call super?

i've seen lot , know, junk code or need leave it?

example: should add together custom uiviewcontroller subclass?

- (void)viewdidappear:(bool)animated { [super viewdidappear:animated]; } - (void)didreceivememorywarning { [super didreceivememorywarning]; }

you can safely remove it.

if don't implement methods, implementation of superclass used, there's no difference @ all.

objective-c inheritance

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -