CellForItemAtIndexPath called in the wrong order in right-to-left language supported apps?

问题内容:

So I am building an app which supports many languages, some of which are right-to-left. Now I noticed when switching my app to Hebrew and printing the indexPaths that the order in which the CellForItemAtIndexPath method is called changes.

This is the result for left-to-right languages:

[0, 0]
[0, 1]
[0, 2]
[0, 3]

This is the result for right-to-left languages:

[0, 11]
[0, 0]
[0, 1]
[0, 2]
[0, 3]

Anyone know if this is an Apple bug, or if there is something else going on?

问题评论:

4
The order really should not matter for cellForItemAtIndexPath. If it does matter for your code, then it’s fundamentally wrong.
I guess you have some trouble in your code.

原文地址:

https://stackoverflow.com/questions/47753765/cellforitematindexpath-called-in-the-wrong-order-in-right-to-left-language-suppo

添加评论

友情链接:蝴蝶教程