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

stepping may behave oddly; variables may not be available #12

Open
misuqian opened this issue Jun 5, 2016 · 1 comment
Open

stepping may behave oddly; variables may not be available #12

misuqian opened this issue Jun 5, 2016 · 1 comment

Comments

@misuqian
Copy link

misuqian commented Jun 5, 2016

public func selectItemAtIndex(index: Int) {
        let tag = index + tagGap
        let currentIndex = selectedItem.tag - tagGap //this line exit break
        guard currentIndex != index && selectedItem != nil else { return }

        let menuItem = viewWithTag(tag) as! MenuItem
        selectedItem.selected = false
        selectedItem = menuItem
        selectedItem.selected = true
        progressView?.moveToPosition(index, animation: false)
        delegate?.menuView?(self, didSelectedIndex: index, fromIndex: currentIndex)
        refreshContentOffset()
    }

@wangmchn
Copy link
Owner

wangmchn commented Jun 5, 2016

Hey, @misuqian
Can u give more information so I can figure out much more easier?
In which situation you got this message? and the log?

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

2 participants