Explorar o código

图片模式时,封面图使用uiimageview渲染

胡志强 %!s(int64=3) %!d(string=hai) anos
pai
achega
1bdb2041da

+ 3 - 1
BFRecordScreenKit/Classes/RecordScreen/View/Cell/BFImageCoverViewCell.swift

@@ -55,7 +55,9 @@ open class BFImageCoverViewCell: UICollectionViewCell {
         super.init(frame: frame)
         contentView.addSubview(playView)
         contentView.addSubview(playBtn)
-        contentView.addSubview(playImageView)
+        if(recordItem?.mediaType == .Image){
+            contentView.addSubview(playImageView)            
+        }
     }
 
     public required init?(coder _: NSCoder) {