--------"no nonsense.
In the return page, implement the following method:
-(void) Navigationcontroller: (uinavigationcontroller*) Navigationcontroller Willshowviewcontroller: ( uiviewcontroller*) Viewcontroller animated: (BOOL) animated;
Note: You need to follow uinavigationcontrollerdelegate and make this class an agent
Usage:
-(void) Navigationcontroller: (uinavigationcontroller*) Navigationcontroller Willshowviewcontroller: ( uiviewcontroller*) Viewcontroller animated: (BOOL) animated{
if ([[[Viewcontroller class]issubclassofclass:[Target Class class]]) {
Perform a refresh operation here
}
Remove the agent to prevent the controller from destroying and causing the navigationcontroller.delegate to point to the wild pointer causing a crash
if (![ [Viewcontroller Class]issubclassofclass:[self class]]) {
Self.navigationcontroller.delegate=nil;
}
}
IOS returns from a page and refreshes the current page