Commit 026d305d authored by pete谢兆麟's avatar pete谢兆麟

Merge branch 'youhua-dev' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into youhua-dev

parents e9be5e9b 55a39d93
...@@ -378,7 +378,8 @@ extension YHMyFileListViewController : UITableViewDelegate, UITableViewDataSourc ...@@ -378,7 +378,8 @@ extension YHMyFileListViewController : UITableViewDelegate, UITableViewDataSourc
func scrollViewDidScroll(_ scrollView: UIScrollView) { func scrollViewDidScroll(_ scrollView: UIScrollView) {
printLog("offset: \(scrollView.contentOffset.y)") printLog("offset: \(scrollView.contentOffset.y)")
let gap = self.consentInsetTop-k_Height_NavigationtBarAndStatuBar-self.topSegmentHeight let segmentHeight = self.items.count <= 1 ? 0.0 : 46.0
let gap = self.consentInsetTop-k_Height_NavigationtBarAndStatuBar-self.topSegmentHeight+segmentHeight
self.navStatusBar.backgroundColor = scrollView.contentOffset.y > gap ? UIColor.white : UIColor.clear self.navStatusBar.backgroundColor = scrollView.contentOffset.y > gap ? UIColor.white : UIColor.clear
self.topSegmentView.backgroundColor = scrollView.contentOffset.y > gap ? UIColor.white : UIColor.clear self.topSegmentView.backgroundColor = scrollView.contentOffset.y > gap ? UIColor.white : UIColor.clear
self.topSegmentView.isHidden = scrollView.contentOffset.y < gap self.topSegmentView.isHidden = scrollView.contentOffset.y < gap
...@@ -437,6 +438,7 @@ extension YHMyFileListViewController { ...@@ -437,6 +438,7 @@ extension YHMyFileListViewController {
@objc func clickSaveBtn() { @objc func clickSaveBtn() {
YHHUD.show(.progress(message: "正在生成图片")) YHHUD.show(.progress(message: "正在生成图片"))
TYSnapshotScroll.screenSnapshot(self.tableView) { TYSnapshotScroll.screenSnapshot(self.tableView) {
[weak self] image in [weak self] image in
YHHUD.hide() YHHUD.hide()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment