0

是否可以在滚动时添加一个UIImageView“粘”到的静态?UINavigationBarUITableView

在下图中,灰色图像基本上会粘UINavigationBar在屏幕上,以便在屏幕上的任何位置都可以看到它。

在此处输入图像描述

4

1 回答 1

2

You can implement the delegate method tableView:viewForHeaderInSection: and supply an image view (or an image view inside another view if you need some padding round the edges). This is assuming that you only have one section.

If you have multiple sections you would either need to add the image view as a subview of the table views superview or use contentInset and tamper with the scrolling.

于 2013-08-01T20:25:18.710 回答