WMPageController-Swift icon indicating copy to clipboard operation
WMPageController-Swift copied to clipboard

stepping may behave oddly; variables may not be available

Open misuqian opened this issue 8 years ago • 1 comments

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()
    }

misuqian avatar Jun 05 '16 13:06 misuqian

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?

wangmchn avatar Jun 05 '16 14:06 wangmchn