{"action":"created","issue":{"url":"https://api.github.com/repos/bestwnh/IGLDropDownMenu/issues/10","labels_url":"https://api.github.com/repos/bestwnh/IGLDropDownMenu/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/bestwnh/IGLDropDownMenu/issues/10/comments","events_url":"https://api.github.com/repos/bestwnh/IGLDropDownMenu/issues/10/events","html_url":"https://github.com/bestwnh/IGLDropDownMenu/issues/10","id":57574251,"number":10,"title":"multiple IGLDropDownMenu","user":{"login":"jitz2010","id":10935683,"avatar_url":"https://avatars.githubusercontent.com/u/10935683?v=3","gravatar_id":"","url":"https://api.github.com/users/jitz2010","html_url":"https://github.com/jitz2010","followers_url":"https://api.github.com/users/jitz2010/followers","following_url":"https://api.github.com/users/jitz2010/following{/other_user}","gists_url":"https://api.github.com/users/jitz2010/gists{/gist_id}","starred_url":"https://api.github.com/users/jitz2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jitz2010/subscriptions","organizations_url":"https://api.github.com/users/jitz2010/orgs","repos_url":"https://api.github.com/users/jitz2010/repos","events_url":"https://api.github.com/users/jitz2010/events{/privacy}","received_events_url":"https://api.github.com/users/jitz2010/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-13T08:58:34Z","updated_at":"2015-03-30T17:46:20Z","closed_at":null,"body":"i tried to set multiple IGLDropDownMenu but when i expand first one second menu covers menu item of first dropdown menu.\r\n\r\ncan we have some suggestion from your side.\r\n\r\nthanks for very clean and neat example."},"comment":{"url":"https://api.github.com/repos/bestwnh/IGLDropDownMenu/issues/comments/87768084","html_url":"https://github.com/bestwnh/IGLDropDownMenu/issues/10#issuecomment-87768084","issue_url":"https://api.github.com/repos/bestwnh/IGLDropDownMenu/issues/10","id":87768084,"user":{"login":"MattFedo","id":5891355,"avatar_url":"https://avatars.githubusercontent.com/u/5891355?v=3","gravatar_id":"","url":"https://api.github.com/users/MattFedo","html_url":"https://github.com/MattFedo","followers_url":"https://api.github.com/users/MattFedo/followers","following_url":"https://api.github.com/users/MattFedo/following{/other_user}","gists_url":"https://api.github.com/users/MattFedo/gists{/gist_id}","starred_url":"https://api.github.com/users/MattFedo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattFedo/subscriptions","organizations_url":"https://api.github.com/users/MattFedo/orgs","repos_url":"https://api.github.com/users/MattFedo/repos","events_url":"https://api.github.com/users/MattFedo/events{/privacy}","received_events_url":"https://api.github.com/users/MattFedo/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T17:46:20Z","updated_at":"2015-03-30T17:46:20Z","body":"Try using the provided code.  It does not work properly.  Only one menu will show when both are clicked.\r\n\r\n-(void)LoadDropDown{\r\n    NSArray *dataArray = @[@{@\"image\":@\"\",@\"title\":@\"Education\"},\r\n                           @{@\"image\":@\"\",@\"title\":@\"Nutrition\"},\r\n                           @{@\"image\":@\"\",@\"title\":@\"Equipment\"},\r\n                           @{@\"image\":@\"\",@\"title\":@\"Exercises\"},\r\n                           @{@\"image\":@\"\",@\"title\":@\"Admissions\"},\r\n                           @{@\"image\":@\"\",@\"title\":@\"Dressing Changes\"},];\r\n    NSMutableArray *dropdownItems = [[NSMutableArray alloc] init];\r\n    for (int i = 0; i < dataArray.count; i++) {\r\n        NSDictionary *dict = dataArray[i];\r\n        \r\n        IGLDropDownItem *item = [[IGLDropDownItem alloc] init];\r\n        [item setIconImage:[UIImage imageNamed:dict[@\"image\"]]];\r\n        [item setText:dict[@\"title\"]];\r\n        [dropdownItems addObject:item];\r\n    }\r\n    \r\n    \r\n    IGLDropDownMenu *drop1 = [[IGLDropDownMenu alloc] init];\r\n    drop1.menuText = @\"Categories...\";\r\n    drop1.dropDownItems = dropdownItems;\r\n    drop1.paddingLeft = 15;\r\n    drop1.frame = CGRectMake(10, 10, 50, 40);\r\n    drop1.delegate = self;\r\n    drop1.type = IGLDropDownMenuTypeStack;\r\n    drop1.flipWhenToggleView = YES;\r\n    [drop1 reloadView];\r\n    [self.view addSubview:drop1];\r\n    \r\n    IGLDropDownMenu *drop2 = [[IGLDropDownMenu alloc] init];\r\n    drop2.menuText = @\"Categories...\";\r\n    drop2.dropDownItems = dropdownItems;\r\n    drop2.frame = CGRectMake(200, 10, 200, 40);\r\n    drop2.paddingLeft = 15;\r\n    drop2.delegate = self;\r\n    drop2.type = IGLDropDownMenuTypeStack;\r\n    drop2.flipWhenToggleView = YES;\r\n    [drop2 reloadView];\r\n    [self.view addSubview:drop2];\r\n    \r\n    \r\n    \r\n    //Block for Selection\r\n     [drop1 addSelectedItemChangeBlock:^(NSInteger selectedIndex) {\r\n        IGLDropDownItem *item = dropdownItems[selectedIndex];\r\n        NSLog(@\"Selected: %@\", item.text);\r\n     }];\r\n\r\n}"}}