iphone - destroy a view when back button is pressed -
my navigation controller organized way:
firstviewcontroller -> secondviewcontroller -> thirdviewcontroller
in first search on web , display result in uitableview when select cell push second search based on key pressed , display information , button "more info" when press button push third view , works fine...
the problem when press 2 times button doing search: when arrive @ third view display every time informations first search!
this because display of information in loadview , called first time, right?
how should do?
thank you!
indeed viewdidshow
called after view has been loaded , created nib file. means should use method initialization stuff.
add new method , call everytime have new results:
- (void) updateandshowresults { // code update third view goes here // , called whenever new results available }
you'd call first or second view controller this:
[thirdview updateandshowresults];
hope helps. please mark best answer clicking "√" on left! thanks.
Comments
Post a Comment