|
@@ -64,14 +64,14 @@ public class MVBaseController: UIViewController, UIGestureRecognizerDelegate {
|
|
|
}
|
|
|
|
|
|
public func leftBackButton() {
|
|
|
- leftButton(image: "icon_detail_back")
|
|
|
+ leftButton(imageName: "icon_detail_back")
|
|
|
}
|
|
|
|
|
|
- func leftButton(image: String?) {
|
|
|
+ func leftButton(imageName: String?) {
|
|
|
let leftButton = UIButton(type: .custom)
|
|
|
leftButton.frame = CGRect(x: 0, y: cDevice_iPhoneStatusBarHei, width: cDefaultMargin * 4, height: cDefaultMargin * 4)
|
|
|
leftButton.imageEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: -5, right: 0)
|
|
|
- leftButton.setImage(UIImage(named: image ?? "icon_detail_back"), for: .normal)
|
|
|
+ leftButton.setImage(UIImage(named: imageName ?? "icon_detail_back"), for: .normal)
|
|
|
leftButton.addTarget(self, action: #selector(backBtnClick), for: .touchUpInside)
|
|
|
navHeadImageView?.addSubview(leftButton)
|
|
|
backButton = leftButton
|