Browse Source

圆角边框细节

Chris 5 years ago
parent
commit
d2836c0010

+ 4 - 0
RainbowPlanet/RainbowPlanet/Modules/MessageModule/MessagePlanetActivity/View/MessageActivityTableCell.swift

@@ -94,11 +94,15 @@ class MessageActivityTableCell: UITableViewCell {
         timeLabel.textColor = kffffffColor
         timeLabel.font = kScaleRegularFont12
         timeLabel.textAlignment = .center
+        timeLabel.cornerRadius = 2
+        timeLabel.masksToBounds = true
         return timeLabel
     }()
     
     private lazy var activityView: UIView = {
         let activityView = UIView()
+        activityView.cornerRadius = 4
+        activityView.masksToBounds = true
         return activityView
     }()
     

+ 6 - 0
RainbowPlanet/RainbowPlanet/Modules/MessageModule/MessagePlanetNotification/View/MessagePlanetNotiTableCell.swift

@@ -106,12 +106,18 @@ class MessagePlanetNotiTableCell: UITableViewCell {
         timeLabel.textColor = kffffffColor
         timeLabel.font = kScaleRegularFont12
         timeLabel.textAlignment = .center
+        timeLabel.cornerRadius = 2
+        timeLabel.masksToBounds = true
         return timeLabel
     }()
     
     private lazy var notiView: UIView = {
         let notiView = UIView()
         notiView.backgroundColor = kffffffColor
+        notiView.cornerRadius = 4
+        notiView.masksToBounds = true
+        notiView.layer.borderWidth = 1.0
+        notiView.layer.borderColor = ke6e6e6Color.cgColor
         return notiView
     }()