Right to Left UI in iPhone (Hebrew)

前端 未结 4 997
名媛妹妹
名媛妹妹 2021-01-12 08:06

I\'m struggling in creating a RTL UI in iPhone application. The framework doesn\'t seem to have any support for RTL languages. The only thing is the alignment inside labels,

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-12 09:05

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

    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.

    Good luck.

提交回复
热议问题