Skip to content
New issue

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

How to Disable Delete Option in ContextMenu #11

Closed
AmitAjmera opened this issue Apr 19, 2015 · 3 comments
Closed

How to Disable Delete Option in ContextMenu #11

AmitAjmera opened this issue Apr 19, 2015 · 3 comments

Comments

@AmitAjmera
Copy link

Another Issue I am facing is that I got two tableview in single screen,One is Context Menu and Other is of my Application, Now I am using "commitEditingStyle" to delete Table cell item by Swipe in my Application table but This Feature will obviously look odd when any user do swipe in ContextMenu so how to disable it for our ContextMenu Table.
ios simulator screen shot apr 19 2015 10 14 03 pm

@maksTheAwesome
Copy link
Contributor

Hello Amit. Thank you for your interest to our component. Regarding your issue did you try turning YES for your table view only for "canEditRowAtIndexPath" like in the sample below:

- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
       if (tableView == myAppTableView) {
          return YES;
       } else {
         return NO;
       }
}

Please try the solution and let me know if I can close the issue.

@AmitAjmera
Copy link
Author

Oh Great!! I was not aware about this method and It worked for me fine and Yes,You can close this issue.

Thanks again :)

@maksTheAwesome
Copy link
Contributor

Perfect! Have fun with your project!

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

No branches or pull requests

2 participants