0 votes
104 views
asked in Swift by (3.1k 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 by (8.2k 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)

Categories

...