iPhone UIButton - image position

前端 未结 16 599
梦谈多话
梦谈多话 2020-12-04 06:18

I have a UIButton with text \"Explore the app\" and UIImage (>) In Interface Builder it looks like:

[ (>) Explore t         


        
16条回答
  •  日久生厌
    2020-12-04 07:08

    Single line solution in Swift :

    // iOS 9 and Onwards
    button.semanticContentAttribute = .forceRightToLeft
    

提交回复
热议问题