从右到左UINavigationController [英] Right to Left UINavigationController

查看:48
本文介绍了从右到左UINavigationController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用UINavigationController和UITableView控制器在我的应用程序上实现分层导航.

I'v been using UINavigationController together with UITableView controllers to implement hierarchical navigation on my app.

不幸的是,UI是希伯来语,因此一切都必须从右到左才能理解.

Unfortunately the UI is in Hebrew so everything have to be from right to left to make sense.

真正的问题是导航控制器,滑动动画方向和后退按钮位置.

The real problem is the navigation controller, slides animation direction and the back button position.

到目前为止,我还没有找到任何优雅的解决方案,但在覆盖pop和push方法方面却取得了一些有限的成功,如下所示:如何更改推送和在基于导航的应用程序中弹出动画

I haven't found any elegant solution so far, had some limited success with overriding the pop and push methods creating transition between the views as suggested here: How to change the Push and Pop animations in a navigation based app

但这是一个非常有限的解决方案,看起来不正确.

But it's a very limited solution and it doesn't look right.

您有什么建议吗?我真的需要用新的东西重写/复制导航控制器吗?如果是这样,您建议继承UINavigationController或UIViewController吗?

Do you have any suggestions? Do I really have to rewrite/replicate the navigation controller with something new? If so would you suggest inheriting UINavigationController or UIViewController ?

推荐答案

如果愿意在其中做些工作,则可以使用UINavigationController的替代品,例如FJTransitionController

If you're willing to put a little work into it, you could use a replacement for the UINavigationController such as the FJTransitionController https://github.com/coreyfloyd/FJSTransitionController. It functions as a drop-in, customizable replacement for navigation or tab controllers as well as any other navigation behavior you could want. You will need to provide the UI on your own though, the existing UINavigationBar might be usable.

这篇关于从右到左UINavigationController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆