UITableView clear data

iphone

Solution

Clear your data before calling reloadData, and now the user will see the table get cleared and re-populated with fresh data.

myArray = nil;
[myTableView reloadData];

Problem

How to clear whole tableview data and reload with new one?

Original source