btn.semanticContentAttribute = .forceRightToLeft
查了下資料?
semanticContentAttribute 是反轉(zhuǎn) ,即描述視圖的內(nèi)容,用來確定視圖之間切換時應(yīng)翻轉(zhuǎn)從左到右和從右到左的布局
最低支持到9.0
btn.semanticContentAttribute = .forceRightToLeft
查了下資料?
semanticContentAttribute 是反轉(zhuǎn) ,即描述視圖的內(nèi)容,用來確定視圖之間切換時應(yīng)翻轉(zhuǎn)從左到右和從右到左的布局
最低支持到9.0