How to reload selected UItableview cell in swift

0 votes
99 views
asked Jan 10, 2015 in Swift by jonathan (3,105 points)

Hi 

  How to reload selected UItableview cell in swift?

I am using the following code but its crashing

placeDetailTableView.reloadRowsAtIndexPaths([indexPath.row], withRowAnimation: UITableViewRowAnimation.Fade)

1 Answer

0 votes
answered Jan 10, 2015 by admin (8,115 points)

Hi jonathan

  Surly it will crash because you are sending wrong first paramete

instead of IndexPath.row use indexPath alone the code will be like this

placeDetailTableView.reloadRowsAtIndexPaths([indexPath], withRowAnimation: UITableViewRowAnimation.Fade)

...