{"action":"created","issue":{"url":"https://api.github.com/repos/wangmchn/WMPageController/issues/31","labels_url":"https://api.github.com/repos/wangmchn/WMPageController/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/wangmchn/WMPageController/issues/31/comments","events_url":"https://api.github.com/repos/wangmchn/WMPageController/issues/31/events","html_url":"https://github.com/wangmchn/WMPageController/issues/31","id":118000569,"number":31,"title":"menuView selected bug?","user":{"login":"litt1e-p","id":10734995,"avatar_url":"https://avatars.githubusercontent.com/u/10734995?v=3","gravatar_id":"","url":"https://api.github.com/users/litt1e-p","html_url":"https://github.com/litt1e-p","followers_url":"https://api.github.com/users/litt1e-p/followers","following_url":"https://api.github.com/users/litt1e-p/following{/other_user}","gists_url":"https://api.github.com/users/litt1e-p/gists{/gist_id}","starred_url":"https://api.github.com/users/litt1e-p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/litt1e-p/subscriptions","organizations_url":"https://api.github.com/users/litt1e-p/orgs","repos_url":"https://api.github.com/users/litt1e-p/repos","events_url":"https://api.github.com/users/litt1e-p/events{/privacy}","received_events_url":"https://api.github.com/users/litt1e-p/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T09:30:09Z","updated_at":"2015-11-23T11:53:32Z","closed_at":null,"body":"it calls the method:addMenuView when I scroll , and go to below lines:\r\n- if (self.selectIndex != 0) {\r\n- [self.menuView selectItemAtIndex:self.selectIndex];\r\n- }\r\n\r\nthen in the WMMenuView.m:\r\n-(void)selectItemAtIndex:(NSInteger)index {\r\n- NSInteger tag = index + kTagGap;\r\n- NSInteger currentIndex = self.selItem.tag - kTagGap;\r\n- WMMenuItem *item = (WMMenuItem *)[self viewWithTag:tag];\r\n- [self.selItem deselectedItemWithoutAnimation];\r\n- self.selItem = item;\r\n- [self.selItem selectedItemWithoutAnimation];\r\n- [self.progressView setProgressWithOutAnimate:index];\r\n- if ([self.delegate respondsToSelector:@selector(menuView:didSelesctedIndex:currentIndex:)]) {\r\n        [self.delegate menuView:self didSelesctedIndex:index currentIndex:currentIndex];\r\n- }\r\n-  [self refreshContenOffset];\r\n}\r\n\r\nthere is a delegate method @selector(menuView:didSelesctedIndex:currentIndex:), it will send to its delegate and responds to it. _animate will become NO, the bug comes:when I scroll again, the menuView couldn't add its view, cause in the method below:\r\n- -(void)scrollViewDidScroll:(UIScrollView *)scrollView, menuView can not call slideMenuAtProgress:.\r\n\r\nit works well when I delete some delegate codes in  the WMMenuView.m: - (void)selectItemAtIndex:(NSInteger)index:\r\n\r\n//    if ([self.delegate respondsToSelector:@selector(menuView:didSelesctedIndex:currentIndex:)]) {\r\n//        [self.delegate menuView:self didSelesctedIndex:index currentIndex:currentIndex];\r\n//    }\r\n\r\nis it?\r\n"},"comment":{"url":"https://api.github.com/repos/wangmchn/WMPageController/issues/comments/158913897","html_url":"https://github.com/wangmchn/WMPageController/issues/31#issuecomment-158913897","issue_url":"https://api.github.com/repos/wangmchn/WMPageController/issues/31","id":158913897,"user":{"login":"wangmchn","id":9441848,"avatar_url":"https://avatars.githubusercontent.com/u/9441848?v=3","gravatar_id":"","url":"https://api.github.com/users/wangmchn","html_url":"https://github.com/wangmchn","followers_url":"https://api.github.com/users/wangmchn/followers","following_url":"https://api.github.com/users/wangmchn/following{/other_user}","gists_url":"https://api.github.com/users/wangmchn/gists{/gist_id}","starred_url":"https://api.github.com/users/wangmchn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangmchn/subscriptions","organizations_url":"https://api.github.com/users/wangmchn/orgs","repos_url":"https://api.github.com/users/wangmchn/repos","events_url":"https://api.github.com/users/wangmchn/events{/privacy}","received_events_url":"https://api.github.com/users/wangmchn/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T11:53:32Z","updated_at":"2015-11-23T11:53:32Z","body":"busy this time,I will check it later.\r\nThx a lot!\r\n=0="}}