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

Feature: Add AMPopTipDirectionNone to center in view #18

Closed
dvkch opened this issue Nov 14, 2014 · 2 comments
Closed

Feature: Add AMPopTipDirectionNone to center in view #18

dvkch opened this issue Nov 14, 2014 · 2 comments

Comments

@dvkch
Copy link

dvkch commented Nov 14, 2014

Hi,

I would like to use this control centered in a view. I think you could mimic the behavior of UIPopovers by adding a AMPopTipDirectionNone direction enum value and center in the destination view frame.

Thanks for considering!

@andreamazz
Copy link
Owner

Hi @dvkch
Checkout commit ee21998 for this feature and let me know how that works for you. Use AMPopTipDirectionNone as direction, and pass in the whole view's frame instead of the point of origin. Something like this:

[self.popTip showText:@"I'm a popover" direction:AMPopTipDirectionNone maxWidth:200 inView:self.view fromFrame:self.view.frame];

@dvkch
Copy link
Author

dvkch commented Nov 14, 2014

Works like a charm, thanks a lot!!

@dvkch dvkch closed this as completed Nov 14, 2014
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

No branches or pull requests

2 participants