This UINavigationItem Category adds the ability to set the prompt with an animation and provides a completion block so you can dismiss the view controller after the prompt is gone.
Install via CocoaPods:
pod 'UINavigationItem+AnimatedPrompt', '~> 1.0'
Don't know about cocoapods? Check it out
To Use:
Import Header File:
#import "UINavigationItem+AnimatedPrompt.h"
Set Prompt and Completion Block:
__weak id weakSelf = self;
[self.navigationItem setPrompt:nil animated:YES completion:^{
[weakSelf performSegueWithIdentifier:@"someSegue" sender:nil];
}];