events - Iphone tab bar control -


i have tab bar control , need method in view controller of each tab called once tab bar item selected.

does know method gets called?

thanks

you can implement uitabbarcontrollerdelegate , have:

- (void)tabbarcontroller:(uitabbarcontroller *)tabbarcontroller didselectviewcontroller:(uiviewcontroller *)viewcontroller 

where retrieve viewcontroller on can call whatever method.

you tabbarcontroller contains viewcontrollers on iterate call method


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -