I have a UITableView and I have only 3 rows in it, and I can see those 3 rows. The problem is the cells that are empty: I can see lines there. I don’t want to see those lines.
Any idea how to remove those lines?
Below is image for what I am looking for.

You can hide
UITableView‘s standard separator line by using any one of the below snippets of code.The easiest way to add a custom separator is to add a simple
UIViewof 1px height:OR
OR
OR
And also check nickfalk’s answer, it is very short and helpful too.
And you should also try this single line,
Not sure but it’s working in all the version of iOS that I checked, with iOS 5 and later, up to iOS 7.