Browse Source

ZZInfoWidget.m 添加属性

zzb 3 years ago
parent
commit
6a915841a9
1 changed files with 15 additions and 0 deletions
  1. 15 0
      ZZUIKit/Classes/ZZInfoWidget/ZZInfoWidget.m

+ 15 - 0
ZZUIKit/Classes/ZZInfoWidget/ZZInfoWidget.m

@@ -43,4 +43,19 @@ FLEXSET(font){
     self.field.font = font;
     self.field.font = font;
 }
 }
 
 
+FLEXSET(color){
+    UIColor* color = colorFromString(sValue, nil);
+    self.field.textColor = color;
+}
+
+FLEXSET(titleColor){
+    UIColor* color = colorFromString(sValue, nil);
+    self.title.textColor = color;
+}
+
+FLEXSET(cursorColor){
+    UIColor* color = colorFromString(sValue, nil);
+    self.field.tintColor = color;
+}
+
 @end
 @end