Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMPopTipView/CMPopTipView.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ typedef NS_ENUM(NSInteger, CMPopTipAnimation) {
@property (nonatomic, assign) CGFloat pointerSize;
@property (nonatomic, assign) CGFloat bubblePaddingX;
@property (nonatomic, assign) CGFloat bubblePaddingY;
@property (nonatomic, assign) NSTimeInterval hideAfter;

/* Contents can be either a message or a UIView */
- (id)initWithTitle:(NSString *)titleToShow message:(NSString *)messageToShow;
Expand Down
4 changes: 4 additions & 0 deletions CMPopTipView/CMPopTipView.m
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@ - (void)drawRect:(__unused CGRect)rect
#pragma clang diagnostic pop

}

if (self.hideAfter) {
[self performSelector:@selector(dismissByUser) withObject:nil afterDelay:self.hideAfter];
}
}
}

Expand Down