2016-11-01 7 views
1

행 작업으로 표 셀에 대한 피드백을 추가하고 싶습니다. 사용자가 셀을 클릭하면 행 동작이 약간 열립니다. 나는 이것을 어딘가에서 본 적이있다. 사용자가 메뉴를 보여 주었다.UITableViewRowAction을 사용하여 탭에서 튀어 오름

내가 제어 할 수있는 문서가 보이지 않습니다.

답변

0
  UIView.animate(withDuration: 0.2, animations: { 

       cell?.frame = CGRect(x: (cell?.frame.origin.x)!-15, y: (cell?.frame.origin.y)!, width: cell!.bounds.size.width, height: cell!.bounds.size.height) 

      }) { (finished) in 
       UIView.animate(withDuration: 0.3, animations: { 

        cell?.frame = CGRect(x: (cell?.frame.origin.x)!+15, y: (cell?.frame.origin.y)!, width: cell!.bounds.size.width, height: cell!.bounds.size.height) 

       }) 
       tableView.deselectRow(at: indexPath, animated: true) 
      }