I use a custom uitableviewcell
in my uitableview
. This cell has a uilable
that centered in the entire cell with 20 point width constraint from right and left. Also the texts of uilable
are center aligned.
I use this uitableview
in a uitabbarcontroller
.
The problem is that when I load the view in landscape mode or rotate the screen from portrait to landscape only the left side of the cell is selectable. It will be unselectable till I switch the tab. Even if I navigation to parent view controller and back to this page it is not selectable. The only thing that make all the cell selectable is changing the tab and backing!
For example in above screenshot if I tap yellow part the cell selects but if I tap red part or on the lable text nothing happens.
The other note is that if I switch the tab of the tabbar and back to this view, now every thing works fine.
Also please notice that I am using Arabic text.
Now does some one know that what is the problem?
EDIT
I notice that even all parts of the yellow part, is not selectable too. Only some left parts of the yellow section is click-able.
EDIT2
(I ADD IT IN THE CONTENT TOO)
I noticed that if I rotate the screen from portrait to landscape the problem is exist too( only the left side of the cell is selectable). It will be unselectable till I switch the tab. Even if I navigation to parent view controller and back to this page it is not selectable. The only thing that make all the cell selectable is changing the tab and backing!