Skip to content

Commit 80ab262

Browse files
authored
Merge pull request #330 from Dongshanxu/master
9.0.1发布
2 parents 08b6ca4 + 9bdf651 commit 80ab262

48 files changed

Lines changed: 230 additions & 54 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

NEKitChat/NEKitChatUI/NEKitChatUI/Classes/Chat/View/Cell/ChatBaseLeftCell.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class ChatBaseLeftCell: ChatBaseCell {
3939
self.avatarImage.translatesAutoresizingMaskIntoConstraints = false
4040
self.avatarImage.clipsToBounds = true
4141
self.avatarImage.isUserInteractionEnabled = true
42+
self.avatarImage.contentMode = .scaleAspectFill
4243
self.contentView.addSubview(self.avatarImage)
4344
NSLayoutConstraint.activate([
4445
self.avatarImage.leftAnchor.constraint(equalTo: self.leftAnchor, constant: 16),

NEKitChat/NEKitChatUI/NEKitChatUI/Classes/Chat/View/Cell/ChatBaseRightCell.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class ChatBaseRightCell: ChatBaseCell {
5353
self.avatarImage.translatesAutoresizingMaskIntoConstraints = false
5454
self.avatarImage.clipsToBounds = true
5555
self.avatarImage.isUserInteractionEnabled = true
56+
self.avatarImage.contentMode = .scaleAspectFill
5657
self.contentView.addSubview(self.avatarImage)
5758
NSLayoutConstraint.activate([
5859
self.avatarImage.rightAnchor.constraint(equalTo: self.rightAnchor, constant: -16),

NEKitChat/NEKitChatUI/NEKitChatUI/Classes/Chat/ViewModel/ChatViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public class ChatViewModel: NSObject, ChatRepoMessageDelegate, NIMChatManagerDel
9696

9797
public func sendVideoMessage(url: URL, _ completion: @escaping (Error?) -> Void){
9898
weak var weakSelf = self
99-
VideoFormatConvert.convertToMP4(with: url) { path, image in
99+
VideoFormatConvert.convertToMP4(with: url,avQuality: AVAssetExportPresetHighestQuality) { path, image in
100100
if let p = path, let s = weakSelf?.session {
101101
weakSelf?.repo.sendMessage(message: MessageUtils.videoMessage(filePath: p), session: s, completion)
102102
}else {

NEKitCommon/NEKitCommonUI/NEKitCommonUI/Classes/NEUserHeaderView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public class NEUserHeaderView: UIImageView {
2727
}
2828

2929
func setupUI(){
30+
contentMode = .scaleAspectFill
3031
isUserInteractionEnabled = true
3132
clipsToBounds = false
3233
addSubview(titleLabel)

NEKitCommon/NEKitCommonUI/NEKitCommonUI/Classes/PhotoBrowser/PhotoBrowserCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class PhotoBrowserCell: UICollectionViewCell {
2323

2424
lazy var imgView : UIImageView = {
2525
let imageView = UIImageView()
26-
imageView.contentMode = .scaleToFill
26+
imageView.contentMode = .scaleAspectFit
2727
return imageView
2828
}()
2929

NEKitCommon/NEKitCommonUI/NEKitCommonUI/Classes/PopListViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class PopListViewController: UIViewController {
4949
shadowView.clipsToBounds = false
5050
shadowView.layer.shadowOffset = CGSize(width: 0, height: 4)
5151
shadowView.layer.shadowColor = NEConstant.hexRGB(0x85888C).cgColor
52-
shadowView.layer.shadowOpacity = 1.0
52+
shadowView.layer.shadowOpacity = 0.25
5353
shadowView.layer.shadowRadius = 7
5454
NSLayoutConstraint.activate([
5555
shadowView.topAnchor.constraint(equalTo: view.topAnchor, constant: 2),

NEKitContact/NEKitContactUI/NEKitContactUI/Assets/NEKitContact.xcassets/blackName.imageset/Contents.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"scale" : "1x"
66
},
77
{
8-
"filename" : "Frame@2x.png",
8+
"filename" : "blackName@2x.png",
99
"idiom" : "universal",
1010
"scale" : "2x"
1111
},
1212
{
13-
"filename" : "Frame@3x.png",
13+
"filename" : "blackName@3x.png",
1414
"idiom" : "universal",
1515
"scale" : "3x"
1616
}
2.19 KB
Loading

0 commit comments

Comments
 (0)