Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool isProcessing = false;
- public override NSIndexPath WillSelectRow (UITableView tableView, NSIndexPath indexPath)
- {
- if(!isProcessing)
- return indexPath;
- return null;
- }
- public override void RowSelected (UITableView tableView, NSIndexPath indexPath)
- {
- isProcessing = true;
- var data = GetDataAt(indexPath);
- ProcessRowSelection(tableView, indexPath, data);
- isProcessing = false;
- }
- public override void RowSelected (UITableView tableView, NSIndexPath indexPath)
- {
- if(!isProcessing)
- {
- isProcessing = true;
- var data = GetDataAt(indexPath);
- ProcessRowSelection(tableView, indexPath, data);
- }
- else
- {
- isProcessing = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement