Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

category on UIViewController #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

benski
Copy link
Owner

@benski benski commented Apr 21, 2016

No description provided.

@@ -0,0 +1,13 @@
//
// UIViewController+BAPromise.h
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YES
freddy

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hah!

oh it would help if i added the methods to the interface file

return promise;
}

- (BAPromise<NSNumber *> *)transitionFromViewController:(UIViewController *)fromViewController toViewController:(UIViewController *)toViewController duration:(NSTimeInterval)duration options:(UIViewAnimationOptions)options animations:(void (^ __nullable)(void))animations completion:(void (^ __nullable)(BOOL finished))completion
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would recommend line breaks on fields for this one :-)


@implementation UIViewController (BAPromise)

-(BAPromise *)promise_DismissViewControllerAnimated:(BOOL)animated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick here but you are using snake_case for first part of ...present... below :-)

@ralph-e-boy
Copy link
Contributor

rockin idea, do you think it would be good to also include present/dismissModalViewController

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants