Say I have UIViewController A and B. User navigates from A to B with a push segue. Than user presses back button and comes to A.
UIViewController
Now viewWillAppear>
viewWillAppear>
Add a BOOL property to UIViewController A:
@property (nonatomic) BOOL alreadyAppeared;
Then in your viewWillAppear: method, add:
viewWillAppear:
if (!self.alreadyAppeared) { self.alreadyAppeared = YES; // Do here the stuff you wanted to do on first appear }