From 5f978199595fb6d2362b24b50e534918d802f077 Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Wed, 8 Feb 2017 22:44:25 -0500 Subject: [PATCH] [tvos][uikit] Fix two UITableViewDataSource that are not prohibited anymore Spotted by xtro !missing-protocol-member! UITableViewDataSource::sectionIndexTitlesForTableView: not found !missing-protocol-member! UITableViewDataSource::tableView:sectionForSectionIndexTitle:atIndex: not found and it was in the header diff too --- (nullable NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView __TVOS_PROHIBITED; // return list of section titles to display in section index view (e.g. "ABCD...Z#") --- (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index __TVOS_PROHIBITED; // tell table which section corresponds to section title/index (e.g. "B",1)) -+- (nullable NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView; // return list of section titles to display in section index view (e.g. "ABCD...Z#") -+- (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index; // tell table which section corresponds to section title/index (e.g. "B",1)) --- src/uikit.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uikit.cs b/src/uikit.cs index 8f7e353fae73..4d4b291b9670 100644 --- a/src/uikit.cs +++ b/src/uikit.cs @@ -11487,11 +11487,11 @@ interface UITableViewDataSource { [Export ("tableView:canMoveRowAtIndexPath:")] bool CanMoveRow (UITableView tableView, NSIndexPath indexPath); - [NoTV] + [TV (10,2)] [Export ("sectionIndexTitlesForTableView:")] string [] SectionIndexTitles (UITableView tableView); - [NoTV] + [TV (10,2)] [Export ("tableView:sectionForSectionIndexTitle:atIndex:")] nint SectionFor (UITableView tableView, string title, nint atIndex);