Jeef
Jeef

Reputation: 27265

ViewController upon navigate back from previous controller

If my setup is:

View Controller A => View Controller B

Were I to hit the back button on View Controller B

Is there a function that gets called on View Controller A

Upvotes: 0

Views: 29

Answers (2)

Jeef
Jeef

Reputation: 27265

Oh ...

ViewDidAppear / ViewWillAppear ... that was simple

Upvotes: 1

user3182143
user3182143

Reputation: 9589

You can use this

-(IBAction)gotopreviousviewControllerButtonAction:(id)sender

 {

    [self.navigationController popViewControllerAnimated:YES];

 }

Upvotes: 0

Related Questions