Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

estupefactika

macrumors member
Original poster
Feb 16, 2009
47
0
Alcobendas (Madrid)
Hi, I have a tabBarController. Each item has a ViewController. It works fine, the problem is when I click an item a second time. In the first time it load methods, I update any thing, etc... but a second time it doesnt do nothing, I would like to update some data but it doesnt load methods again

Is there any way to solve it? Thanks
 

estupefactika

macrumors member
Original poster
Feb 16, 2009
47
0
Alcobendas (Madrid)
Let me get this straight: you are clicking a tab bar item that is already selected, correct?

No, it has already been selected previously.
All my tab bar item use the same ViewController, depending what is clicked, it display one or other things.

Example:
- I click in tab bar item 1, it display me a table. Correct.
- I click in tab bar item 2, it does the same, correct.
- Now, in tab bar item 2 I update all data clicking a UIButton, it display me the table updated, correct. But If I come back to tab bar item 1, it contains the old table not updated, I need reload it. I think is because the view has already been loaded previously. I would need to reload it again. It is possible?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.