[ios] Fixed indexPath retrieval.

This commit is contained in:
Ilya Grechuhin 2016-06-15 14:47:38 +03:00 committed by Vladimir Byko-Ianko
parent 0efe070d0e
commit 13dba8a289

View file

@ -911,7 +911,7 @@ void registerCellsForTableView(vector<MWMPlacePageCellType> const & cells, UITab
- (void)cell:(MWMTableViewCell *)cell changedText:(NSString *)changeText
{
NSAssert(changeText != nil, @"String can't be nil!");
NSIndexPath * indexPath = [self.tableView indexPathForCell:cell];
NSIndexPath * indexPath = [self.tableView indexPathForRowAtPoint:cell.center];
MWMPlacePageCellType const cellType = [self cellTypeForIndexPath:indexPath];
string const val = changeText.UTF8String;
switch (cellType)