Skip to content

Adds "hideAfter" property to hide tip after n seconds#113

Open
ecnepsnai wants to merge 1 commit intochrismiles:masterfrom
ecnepsnai:master
Open

Adds "hideAfter" property to hide tip after n seconds#113
ecnepsnai wants to merge 1 commit intochrismiles:masterfrom
ecnepsnai:master

Conversation

@ecnepsnai
Copy link

I use this in my app and it seems like a useful feature to add.

Usage:

CMPopTipView * tipView = [[CMPopTipView alloc] initWithMessage:@"Won't last forever!"];
tipView.delegate = self;
tipView.hideAfter = 5;
[tipView presentPointingAtView:headerImage inView:self.view animated:YES];

And the tipView will automatically close after 5 seconds.

@kleinlieu
Copy link
Collaborator

Hi @ecnepsnai we already have - (void)autoDismissAnimated:(BOOL)animated atTimeInterval:(NSTimeInterval)timeInterval; in the interface.

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