andreamazz / AMScrollingNavbar

Scrollable UINavigationBar that follows the scrolling of a UIScrollView
MIT License
6.05k stars 633 forks source link

cannot cast ScrollingNavigationController #326

Closed suzuhiroruri closed 5 years ago

suzuhiroruri commented 5 years ago

Describe the bug swift3 branch

use: if let navigationController = self.navigationController as? ScrollingNavigationController { navigationController.followScrollView(tableView, delay: 50.0) } However cannot through "if" statements

To Reproduce Steps to reproduce the behavior:

  1. Do this
  2. Do that
  3. Observe error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.