且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

iPhone中的从右到左UI(希伯来语)

更新时间:2023-02-26 11:37:52

我不要相信有一种正确的方法,但这里有一个解决方案:

I don't believe that there is a "correct" way of doing this, but here is one solution:

在视图中,创建一个UIView并向其添加一个UITableView 。将UIView添加为主视图的子视图,并将其边界指定为偏离屏幕左侧,以便除索引之外的所有索引都被主视图剪切。现在你所要做的就是在触摸子视图的索引时添加一些代码来同步两个表。

Within the view, create a UIView and add a UITableView to it. Add the UIView as a subView of your "master" view and specify its bounds to be off of the left side of the screen so that all but the indices is clipped by the "master" view. Now all you have to do is add a bit of code to synchronize the two tables when an index from the subview is touched.

显然这不是***的解决方案,但是它是可行的。

Obviously this is not the best solution, but it is one that could work.

祝你好运。