views:

222

answers:

1

Hello,

I have a situation here, I have a seach bar in my view. For this search bar I enter text in Hebrew (for information Hebrew is written from right to left).

When I am writing text say "abcd" then in hebrew first 'd' appears then 'c' then 'b' and so on.

While entering text in search bar when delete is pressed first 'a' will be deleted then 'b' and so on.

but when I resign keyboard click again on searchbar and start editing the the cursor appears at the end(ie right ) of text and text shifts left , but actually text should stay at right and cursor should appear at left.

I have tested this on safari of iphone

change keyboard type to Hebre and try by writing text to search bar

Is there any way to resolve this

A: 

I've just tried this is a minimal app and it works as expected (not that I've any idea what the characters mean!). Writing goes from right to left and deleting goes from left to right. If I resign first responder on the search bar and then reactivate it the cursor appears in the correct position (on the left). I've tried this on the simulator and an iPhone 3G:

Simulator v3.1 (139.1)

iPhone 3G v3.1.2(7D11)

xCode 3.2.1 (snow leopard)

The search bar in Safari works correctly as well. Are you using an older OS version on the phone?

Robin Summerhill
thnx for the effort...........try changing keyboard to numeric type something then to alphabets.......
Ankit Sachan
I've tried all combinations of numeric, English and Hebrew. If I start in Hebrew then the reading direction is right-to-left and everything works OK.
Robin Summerhill