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
5 changes: 4 additions & 1 deletion PopoverView/PopoverView.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,12 @@
//Delegate receives this call as soon as the item has been selected
- (void)popoverView:(PopoverView *)popoverView didSelectItemAtIndex:(NSInteger)index;

//Delegate receives this call once the popover has begun the dismissal animation
//Delegate receives this call once the popover has finished the dismissal animation
- (void)popoverViewDidDismiss:(PopoverView *)popoverView;

//Delegate receives this call once the popover has begun the dismissal animation
- (void)popoverViewWillDismiss:(PopoverView *)popoverView;

@end

@interface PopoverView : UIView {
Expand Down
4 changes: 4 additions & 0 deletions PopoverView/PopoverView.m
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,10 @@ - (void)dismiss

- (void)dismiss:(BOOL)animated
{
if (self.delegate && [self.delegate respondsToSelector:@selector(popoverViewWillDismiss:)]) {
[delegate popoverViewWillDismiss:self];
}

if (!animated)
{
[self dismissComplete];
Expand Down