UITabBarController 中的 TTPhotoViewController
我一直在尝试将 TTPhotoViewController 集成到 UITabBarController 中一段时间,但没有成功。
TTPhotoViewController 以独立方式工作正常,但我无法将其“按入”TabBar。
有没有人遇到过可以做到这一点的例子?
非常感谢您的帮助。
I have been trying to integrate the TTPhotoViewController into a UITabBarController for a while but have not succeed.
The TTPhotoViewController works fine in a stand-alone fashion but I can't "press it" into a TabBar.
Has anyone come across an example that would do it?
Your help is much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我遇到了同样的问题,但我找到了除使用 Three20 之外的替代解决方案。我最终使用了位于以下位置的 KTPhotoBrowser: https://github.com/kirbyt/KTPhotoBrowser
我得到了 KTPhotoBrowser大约 15 分钟即可工作。我最喜欢的是它的简单性:只需将一些 .h/.m 文件复制到您的项目中即可。就是这样...
它只是一个照片浏览器,没有像 Three20 那样的额外控件...
此外,通过一些“发布”删除,它在 iOS5 中兼容 ARC,并且故事板可以很好地使用它。它附带了本地图片、flickr 或网站图片的样本。
I had the same issue, but I found an alternative solution than using Three20. I ended up using the KTPhotoBrowser found at: https://github.com/kirbyt/KTPhotoBrowser
I got KTPhotoBrowser working in about 15 minutes. What I like most is its simplicity: just copy a few .h/.m files to your project. That's it...
It is only a photo browser though, no extra controls as Three20 has...
Also, with a couple of "release" removals, it is ARC compatible in iOS5, and storyboard plays well with it. It comes with samples for local pics, flickr, or web site pics.
如果将视图控制器放置在导航控制器内,则可以在 tabbarcontroller 中工作,尽管它似乎干扰了我实现的 tabbarcontroller 子类,以便为其中一个视图启用横向方向(以显示视频)。
Works in tabbarcontroller if you place the view controller inside a navigation controller, although it seems to have interfered with my subclassing of tabbarcontroller which I had implemented in order to have landscape orientation enabled for one of the views (to show video).