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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -