jjzjj

currentTouchPosition

全部标签

ios - 类型 'AnyObject' 不符合协议(protocol) 'Hashable'

我正在将现有的Objective-C项目转换为Swift。我正在转换一个出现上述错误的函数。请检查以下代码。objective-C-(IBAction)accessoryButtonTapped:(id)senderevent:(id)event{NSSet*touches=[eventallTouches];UITouch*touch=[touchesanyObject];CGPointcurrentTouchPosition=[touchlocationInView:self.tableView];NSIndexPath*indexPath=[self.tableViewindex