Created
March 22, 2019 17:01
-
-
Save felipeslongo/adc6e825f64a080a092d18eb168df86c to your computer and use it in GitHub Desktop.
Xamarin.IOS extension method that performs a click/tap event into a UITableViewCell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace UIKit | |
{ | |
public static class UITableView_SelectCell | |
{ | |
public static void SelectCell(this UITableView @this, UITableViewCell cell) | |
{ | |
var index = @this.IndexPathForCell(cell); | |
@this.SelectRow(index, true, UITableViewScrollPosition.None); | |
@this.Delegate.RowSelected(@this, index); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment