去除UITableView下面多余的分隔线 | Eliminate Extra separators below UITableView – in iphone sdk

from:http://stackoverflow.com/questions/1369831/eliminate-extra-separators-below-uitableview-in-iphone-sdk

For iOS 8., 7. and iOS 6.1

The easiest method is to set the tableFooterView property:

Or using Storyboard, drag a View to the bottom of the Table View to create a tableFooterView. Set the frame of the tableFooterView to have a height of 0.

For previous versions

You could add this to your TableViewController (this will work for any number of sections):

and if it is not enough, add the following code too:

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注