Commit 048a95c3 authored by Steven杜宇's avatar Steven杜宇

// vip

parent 050e447b
......@@ -135,6 +135,23 @@ class YHVipLevelRightViewController: YHBaseViewController, UITableViewDataSource
make.width.equalTo(12)
}
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
autoScrollToOwnVipRight()
}
func autoScrollToOwnVipRight() {
var offSetX = 0.0
if self.level == .normal || self.level == .gold {
offSetX = 0.0
} else if self.level == .platinum || self.level == .diamond {
offSetX = KScreenWidth * 2.0 / 3.0
}
printLog("&&&@ \(offSetX)")
self.scrollView.contentOffset = CGPointMake(offSetX, 0)
self.titleView.scrollView.contentOffset = CGPointMake(offSetX, 0)
}
}
extension YHVipLevelRightViewController {
......
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