Skip to content

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.

License

Notifications You must be signed in to change notification settings

mkral/UINavigationItem-AnimatedPrompt

Repository files navigation

UINavigationItem-AnimatedPrompt

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];
}];

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published