Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在UITableViewController中与UIRefreshControl共用有bug #1

Open
winddpan opened this issue Jun 21, 2017 · 0 comments
Open

在UITableViewController中与UIRefreshControl共用有bug #1

winddpan opened this issue Jun 21, 2017 · 0 comments

Comments

@winddpan
Copy link

winddpan commented Jun 21, 2017

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必定变为非透明。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant