如何实现“加载新帖子”就像 UITableView 顶部的 Facebook 一样?
我喜欢 Facebook 在 UITableView 顶部的“加载新帖子”。这只是 UITableView 的标题“视图”吗?他们如何加载 UITableView 使其隐藏,即 UITableView 的第一个单元格与顶部对齐,因此您必须实际向下滚动才能看到“加载新帖子”区域?
谢谢
I like how Facebook has the "Load New Posts" at the top of the UITableView. Is that just a header "view" to the UITableView? And how do they load the UITableView so its hidden, i.e. the first cell of the UITableView is aligned with the top so you have to actually scroll down to see the "Load New Posts" area?
Thx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Neal,或者,您可以尝试使用 MonoTouch.Dialog 框架,该框架增加了对“Twitter for iPhone”之类的拉动刷新系统的支持。
请参阅:
http://github.com/migueldeicaza/MonoTouch.Dialog
Neal, alternatively, you could try using the MonoTouch.Dialog framework, which adds support for a "Twitter for iPhone"-like Pull-to-Refresh system.
See:
http://github.com/migueldeicaza/MonoTouch.Dialog
是的,您可以在 UITableView 的顶部显示自定义视图 - 请参阅其
tableHeaderView
属性。要最初“隐藏”它,您必须将表格滚动到顶部位置的第一行:
Yes you can display custom view at the top of the UITableView - see its
tableHeaderView
property.To "hide" it initially you must scroll the table to 1st row at the top position: