We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you want to just show a single swipe menu in TableView can try with my sample:
Create a property the keep last cell has shown the menu.
@interface MyViewController ()<UITableViewDelegate,UITableViewDataSource ,SWTableViewCellDelegate> @property (nonatomic, strong) SWTableViewCell *lastSWCell; @end
Then implement this code to hide the menu of the last cell has been shown.
-(void) swipeableTableViewCell:(SWTableViewCell *)cell scrollingToState:(SWCellState)state{ if (state != kCellStateCenter) { if (self.lastSWCell) { [self.lastSWCell hideUtilityButtonsAnimated:YES]; } self.lastSWCell = cell; } }
If you want to hide the menu when user scrolled the TableView implement this:
- (void)scrollViewDidScroll:(UIScrollView *)scrollView{ if (self.lastSWCell) { [self.lastSWCell hideUtilityButtonsAnimated:YES]; self.lastSWCell = nil; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you want to just show a single swipe menu in TableView can try with my sample:
Create a property the keep last cell has shown the menu.
Then implement this code to hide the menu of the last cell has been shown.
If you want to hide the menu when user scrolled the TableView implement this:
The text was updated successfully, but these errors were encountered: