//1.向數(shù)組插入數(shù)據(jù)
[self.allCitiesaddObject:@"上海"];
//向最后一行插入數(shù)據(jù),前提一定要先將數(shù)據(jù)插入到數(shù)組中
NSIndexPath*indexPath = [NSIndexPathindexPathForRow:self.allCities.count-1inSection:0];
[self.tableViewinsertRowsAtIndexPaths:@[indexPath]withRowAnimation:UITableViewRowAnimationLeft]