UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
But in iOS 5, we usually use this method to create an instance of UITableViewCell: -
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
In iOS 5, there is no need for an additional parameter that you used in iOS 6. Just release it and it will work (forIndexPath :).
source
share