views:

31

answers:

1

I have tab bar application and when i press on one of the tabs the ViewDidLoad called now if i moving to another tab and then return to the previous one the VewDidLoad didnt call how can i know that this window load again?

and also how can i refresh a view? for example a viewtable that i made logic changes and want to refresh the new data.

thanks.

+1  A: 

the viewdidload method will just called once.

the method you want is viewWillAppear. you can override it.

refreshing a tableview theres a method [tableview relaodData]

antihero
so if i will override the method viewWillAppear with [self.tableview relaodData] then the view will draw itself with the new data?
Amir