ios - UIButton title alignment not changing to right direction in RTL -


i having application in both ltr , rtl languages. fine uibutton title alignment not changing right though uibutton flips itself. here screenshot: uibutton in rtl

alignment given

constraints given default language english:

constraints given default language english:

what issue , why happens? need set title programatically aligned right?

use right alignment storyboard

enter image description here

or programmatically

buttonshowonmap.contenthorizontalalignment = .left//for left alignment  buttonshowonmap.contenthorizontalalignment = .right//for right alignment 

Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -