Skip to content
Open
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
9 changes: 6 additions & 3 deletions Pod/Classes/RMPScrollingMenuBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -493,9 +493,6 @@ - (void)setSelectedItem:(RMPScrollingMenuBarItem *)selectedItem animated:(BOOL)a
_indicatorView.frame = f;
} completion:^(BOOL finished) {
self.userInteractionEnabled = YES;
if([_delegate respondsToSelector:@selector(menuBar:didSelectItem:direction:)]){
[_delegate menuBar:self didSelectItem:_selectedItem direction:direction];
}
}];
}else if(_style == RMPScrollingMenuBarStyleInfinitePaging){
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
Expand All @@ -513,6 +510,12 @@ - (void)setSelectedItem:(RMPScrollingMenuBarItem *)selectedItem animated:(BOOL)a
_infinitePagingIsTappedItem = NO;
});
}

// ************* extension *************
if([_delegate respondsToSelector:@selector(menuBar:didSelectItem:direction:)]){
[_delegate menuBar:self didSelectItem:_selectedItem direction:direction];
}
// *************************************
}

- (void)setIndicatorColor:(UIColor *)indicatorColor
Expand Down