如何使用主视图滑动详图视图

时间:2013-09-16 16:06:14

标签: ios objective-c master-detail

我目前有一个应用程序,可以将所有意图和目的视为xcode中的基本默认主/详细应用程序。我面临的问题是,此时,当主视图打开时,它只显示在详细视图的顶部。像这样http://i.stack.imgur.com/0iCfS.png

我更喜欢它,如果细节视图与主视图一起滑动,那么您将从详细视图的边缘看到,类似于facebook应用程序,我相信大多数人都熟悉http://www7.pcmag.com/media/images/320683-facebook-ipad.jpg?thumb=y < / p>

如果有人能提供解决方案或指出我的方向,我将非常感激。

1 个答案:

答案 0 :(得分:0)

您可以轻松使用大量可用的解决方案来达到预期的效果。

我最近测试过ECSlidingViewController并发现它直截了当: https://github.com/edgecase/ECSlidingViewController

如果您对做更好的事情感兴趣,或了解这种解决方案背后的机制,请查看Apple的以下文档: https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/CreatingCustomContainerViewControllers/CreatingCustomContainerViewControllers.html

相关问题