Closed luowen1991 closed 3 years ago
let avatarImageView = UIImageView(frame: .init(x: 0, y: 0, width: 40, height: 40)) avatarImageView.layer.cornerRadius = 20 avatarImageView.layer.masksToBounds = true avatarImageView.kf.setImage(with: URL(string: "http://i0.hdslb.com/bfs/archive/689ed56f5b8b9bd26a90b20c52d464ebc0156185.png")) let leftButtonItem = UIBarButtonItem(customView: avatarImageView)
I will check it when I have time.