Showing
3 changed files
with
19 additions
and
5 deletions
| ... | @@ -1001,7 +1001,7 @@ | ... | @@ -1001,7 +1001,7 @@ |
| 1001 | GENERATE_INFOPLIST_FILE = YES; | 1001 | GENERATE_INFOPLIST_FILE = YES; |
| 1002 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; | 1002 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; |
| 1003 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; | 1003 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; |
| 1004 | - IPHONEOS_DEPLOYMENT_TARGET = 13.0; | 1004 | + IPHONEOS_DEPLOYMENT_TARGET = 11.0; |
| 1005 | LD_RUNPATH_SEARCH_PATHS = ( | 1005 | LD_RUNPATH_SEARCH_PATHS = ( |
| 1006 | "$(inherited)", | 1006 | "$(inherited)", |
| 1007 | "@executable_path/Frameworks", | 1007 | "@executable_path/Frameworks", |
| ... | @@ -1037,7 +1037,7 @@ | ... | @@ -1037,7 +1037,7 @@ |
| 1037 | GENERATE_INFOPLIST_FILE = YES; | 1037 | GENERATE_INFOPLIST_FILE = YES; |
| 1038 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; | 1038 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; |
| 1039 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; | 1039 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; |
| 1040 | - IPHONEOS_DEPLOYMENT_TARGET = 13.0; | 1040 | + IPHONEOS_DEPLOYMENT_TARGET = 11.0; |
| 1041 | LD_RUNPATH_SEARCH_PATHS = ( | 1041 | LD_RUNPATH_SEARCH_PATHS = ( |
| 1042 | "$(inherited)", | 1042 | "$(inherited)", |
| 1043 | "@executable_path/Frameworks", | 1043 | "@executable_path/Frameworks", | ... | ... |
No preview for this file type
| ... | @@ -11,9 +11,23 @@ import UIKit | ... | @@ -11,9 +11,23 @@ import UIKit |
| 11 | @objc public class CouponsViewController: UIViewController { | 11 | @objc public class CouponsViewController: UIViewController { |
| 12 | public override func viewWillAppear(_ animated: Bool) { | 12 | public override func viewWillAppear(_ animated: Bool) { |
| 13 | super.viewWillAppear(animated) | 13 | super.viewWillAppear(animated) |
| 14 | - self.navigationController?.navigationBar.topItem?.title = "" | 14 | +// self.navigationController?.navigationBar.topItem?.title = "" |
| 15 | +// | ||
| 16 | +// self.navigationController?.navigationBar.backIndicatorImage = UIImage(contentsOfFile: "ic_back") | ||
| 17 | +// self.navigationController?.navigationBar.backIndicatorTransitionMaskImage = UIImage(contentsOfFile: "ic_back") | ||
| 18 | + let backButton = UIButton(type: UIButton.ButtonType.custom) as UIButton | ||
| 19 | + backButton.frame = CGRect(x: 0, y: 0, width: 40, height: 25) | ||
| 20 | + backButton.imageView!.contentMode = .scaleAspectFit | ||
| 21 | + backButton.setImage(UIImage(named: "ic_back"), for: .normal) | ||
| 22 | + backButton.imageEdgeInsets = UIEdgeInsets(top: 0, left: -20, bottom: 0, right: 0) | ||
| 23 | + backButton.addTarget(self, action: #selector(moveToBack(_:)), for: .touchUpInside) | ||
| 24 | + | ||
| 25 | + let leftBarButtonItem: UIBarButtonItem = UIBarButtonItem(customView: backButton) | ||
| 26 | + self.navigationController?.navigationItem.setLeftBarButton(leftBarButtonItem, animated: false) | ||
| 27 | + self.navigationController?.navigationItem.title = "" | ||
| 28 | + } | ||
| 15 | 29 | ||
| 16 | - self.navigationController?.navigationBar.backIndicatorImage = UIImage(contentsOfFile: "ic_back") | 30 | + @objc func moveToBack(_ sender:UIButton){ |
| 17 | - self.navigationController?.navigationBar.backIndicatorTransitionMaskImage = UIImage(contentsOfFile: "ic_back") | 31 | + self.navigationController?.popViewController(animated: true) |
| 18 | } | 32 | } |
| 19 | } | 33 | } | ... | ... |
-
Please register or login to post a comment