iphone uitableview 到另一个视图
在我的程序中,我需要一个表格视图,当您单击一行时,视图向左滚动并显示详细信息(例如邮件......) 我该怎么做? 我解释一下......这是一个自动的事情,或者我需要手动管理视图的动画? 提前致谢
in my program I need a tableview and, when you click onto a row, the view scroll left and show the details (like the mail for example...)
how can I do this??
I explain... it's an automatic thing or I need to manage by hand the animation of the view??
thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用 UINavigationControllers 来实现单击该行时左侧细节动画的效果。因此,您需要在 UIViewController 或 UITableView 控制器之上有一个 UINavigation 控制器来控制您的表格。
{
...我的代码
}
I use UINavigationControllers to achieve this effect of the detail animating left when you click on the row. So you need a UINavigation controller above the UIViewController or UITableView Controller that controls your table.
{
...my code
}
您的情况正是
UINavigationController
类的用途 - 它将处理您的控制器层次结构,并为您进行动画转换。要了解如何使用它,您可以查看 Apple 的 NavBar 示例。Your case is exactly what
UINavigationController
class is for - it will handle your controllers hierarchy and will do animated transition for you as well. To learn how to use it you can have a look at Apple's NavBar sample.