RW_DropdownMenu icon indicating copy to clipboard operation
RW_DropdownMenu copied to clipboard

how can i known which column was clicked?

Open kyosold opened this issue 9 years ago • 2 comments

when clicked first column 0 - 2 and clicked second column row 2, the values is same.

kyosold avatar Jan 26 '16 03:01 kyosold

First: i modify protocol in DropdownMenu.m:

  • (void)returnSelectedLeftIndex:(NSString *)left RightIndex:(NSString *)right to:
  • (void)returnSelectedIndex:(NSInteger)index LeftIndex:(NSString *)left RightIndex:(NSString *)right

Second: change: - (void)selectedFirstValue:(NSString *)first SecondValue:(NSString *)second:

  • (void)selectedFirstValue:(NSString *)first SecondValue:(NSString *)second{ NSString *index = [NSString stringWithFormat:@"%@-%@", first, second]; [_buttonIndexArray setObject:index atIndexedSubscript:_buttonSelectedIndex]; //[self returnSelectedLeftIndex:first RightIndex:second]; [self returnSelectedIndex:_buttonSelectedIndex LeftIndex:first RightIndex:second]; }

Using delegate index to be which selected index.

kyosold avatar Jan 26 '16 04:01 kyosold

Thanks, change is good!

Ryan-Wong-iOS avatar Apr 21 '16 02:04 Ryan-Wong-iOS