UIScrollView Right to Left language & scroll direction

I am working on an app that is localized for Arabic and most of my views switch orientation from Left to right -> Right to Left depending on the locale of the device.


However, I am seeing with UIScrollView that it always has it's "starting point" for scrolling from the left hand side, irresepective of language.

Is there a property that can be set in either the Xib/programatically to make the scroll view begin scrolling from the opposite side of the view for RtL languages?


Thanks

Replies

I would set it programmatically; see

h ttps://stackoverflow.com/questions/7318336/set-starting-point-of-content-size-for-uiscrollview

try this:


UIScrollView *theBoard=myScrollView;
theBoard.contentOffset=
                CGPointMake(theBoard.bounds.size.width*(theBoard.zoomScale-1.0),theBoard.contentOffset.y);