浏览代码

修改富文本的对齐方式

jsonwang 3 年之前
父节点
当前提交
0c265f6545
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Introduce/Record/INRecorderController.swift

+ 1 - 2
Introduce/Record/INRecorderController.swift

@@ -61,7 +61,6 @@ class INRecorderController: BFBaseViewController {
         protocolLab.delegate = self
         protocolLab.font = UIFont.systemFont(ofSize: 14)
         protocolLab.text = "在您使用视说服务前,请认准阅读"
-        protocolLab.textAlignment = .left
         protocolLab.textColor = UIColor(red: 0.262, green: 0.262, blue: 0.262, alpha: 1)
         protocolLab.appendLink(withText: "《视说用户协议》、 ", linkFont: UIFont.systemFont(ofSize: 14), linkColor: UIColor.hexColor(hexadecimal: "#90a9d2"),  underLineStyle:CTUnderlineStyle(), linkData: cUserProtocol)
 
@@ -70,7 +69,7 @@ class INRecorderController: BFBaseViewController {
         protocolLab.appendLink(withText: "\n\n", linkFont: UIFont.systemFont(ofSize: 14), linkColor: UIColor.hexColor(hexadecimal: "#999999"), underLineStyle: CTUnderlineStyle(), linkData: nil)
         
         protocolLab.appendLink(withText: "点击同意表示您已阅读并且认可所有条款。", linkFont: UIFont.systemFont(ofSize: 14), linkColor: UIColor(red: 0.262, green: 0.262, blue: 0.262, alpha: 1), underLineStyle: CTUnderlineStyle(), linkData: nil)
-        protocolLab.textAlignment = CTTextAlignment.center
+        protocolLab.textAlignment = CTTextAlignment.left
         return protocolLab
     }()