Commit 655dd12c authored by David黄金龙's avatar David黄金龙

一处 UI 优化

parent 3b89c330
......@@ -23,13 +23,19 @@ class YHPreviewMainViewController: YHBaseViewController {
var myDefaultIndex : Int = 0 {
didSet {
DispatchQueue.main.asyncAfter(wallDeadline: .now() + 0.25) {[weak self] in
self?.cellView.myDefaultNavItemIndex = self?.myDefaultIndex ?? 0
DispatchQueue.global().asyncAfter(wallDeadline: .now() ) {[weak self] in
DispatchQueue.main.async {
self?.cellView.myDefaultNavItemIndex = self?.myDefaultIndex ?? 0
}
}
}
}
let cellView: YHPreviewControllerHoldViewController = YHPreviewControllerHoldViewController()
lazy var cellView: YHPreviewControllerHoldViewController = {
let ttt = YHPreviewControllerHoldViewController()
ttt.myDefaultNavItemIndex = self.myDefaultIndex
return ttt
}()
var homeTableView: YHGestureTableView = {
let tableView = YHGestureTableView(frame: .zero, style: .grouped)
......
......@@ -53,6 +53,4 @@ class YHBaseUrlManager {
return YHBaseUrlManager.h5UrlRelease
#endif
}
}
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