WRNavigationBar_swift icon indicating copy to clipboard operation
WRNavigationBar_swift copied to clipboard

在UITableViewController中与UIRefreshControl共用有bug

Open winddpan opened this issue 8 years ago • 0 comments

override func viewDidLoad() {
    refreshControl = UIRefreshControl.init()
    navBarBackgroundAlpha = 0
}
    private func changeNavBarAnimateWithIsClear(isClear:Bool)
    {
        UIView.animate(withDuration: 0.5, animations: { [weak self] in
            if let weakSelf = self
            {
                if (isClear == true) {
                    weakSelf.navBarBackgroundAlpha = 0
                }
                else {
                    weakSelf.navBarBackgroundAlpha = 1.0
                }
            }
        })
    }

changeNavBarAnimateWithIsClear(isClear: false) 后面任意时间调用不会显示NavigationBar,将refreshControl初始化部分放到viewDidAppear中就没有这个问题。

  • 手势右划翻页距离不够长时放开后title动画太突兀,作为强迫症有些难过。

  • 在使用ActionSheet后有时NavigationBar又会变成非透明,重现为push进另外一个ViewController,然后pop回来,这时候弹出ActionSheet必定变为非透明。

winddpan avatar Jun 21 '17 16:06 winddpan