반응형 Swift1 선택된 셀의 인덱스 불러오기 Swift func addItem(sender: UIButton) { var touchPoint = sender.convert(CGPoint.zero, to: self.maintable) // maintable --> replace your tableview name var clickedButtonIndexPath = maintable.indexPathForRow(at: touchPoint) NSLog("index path.section ==%ld", Int(clickedButtonIndexPath.section)) NSLog("index path.row ==%ld", Int(clickedButtonIndexPath.row)) } Obj-C CGPoint touchPoint = [sender conve.. 2019. 5. 30. 이전 1 다음 반응형