{"action":"closed","issue":{"number":46,"created_at":"2011-10-17T10:34:52Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hi Nick,\r\nIam using I iCarousel as a linear type with wrap Off to display a carousel menu at the top of my view.\r\nThe menu items in this view are taken from a server response. So whenever I get new data from the server, I update my model\r\nand call iCarousel reloaddata. The problem is sometimes even though I get the proper data and my model is updating properly ,\r\nafter the reload icarousel fails to display anything. Iam not using any placeholders and the no of visible items are no of items in my menu. Here is the code where Iam doing this:\r\nThe interesting thing is when I rotate the orientation , then it gets loaded properly  ( layoutSubviews is called when the orientation is changed) and it occurs only on device, not on simulator\r\n\r\n- (void)onGettingCatagoryData:(NSArray *)array\r\n{\r\n    if(m_categoryArray)\r\n    {\r\n        [m_categoryArray release];\r\n        m_categoryArray = nil;\r\n    }\r\n    //    m_categoryArray = [[NSMutableArray alloc] init];\r\n    m_categoryArray = [array mutableCopy];\r\n    \r\n    [m_categoryArray insertObject:m_allDictionary atIndex:0];\r\n    \r\n    NSArray *otherArray = [[SmartClientFWBase sharedSmartClientFWBase] getRootWidgets:NO];\r\n    if([otherArray count])\r\n        [m_categoryArray insertObject:m_othersDictionary atIndex:([array count] + 1)];\r\n    \r\n    [self creatingButtonsForCarousel:[m_categoryArray count]];\r\n\r\n    [self.icarousel reloadData];\r\n    \r\n    [self.icarousel scrollToItemAtIndex:0 animated:YES];\r\n    \r\n   }\r\nand here is my viewAtindex method:\r\n\r\n- (UIView *)carousel:(iCarousel *)carousel viewForItemAtIndex:(NSUInteger)index\r\n{  \r\n    return [m_buttonArray objectAtIndex:index];\r\n}\r\nm_buttonArray is a mutable array created only once and updated in creatingButtonsForCarousel which is called in the above method\r\nWould appreciate any sort of help..\r\nThanks\r\nVamshi\r\n","comments":2,"title":"Empty carousel","updated_at":"2011-10-17T11:58:55Z","url":"https://api.github.com/repos/nicklockwood/iCarousel/issues/46","id":1927047,"assignee":null,"milestone":null,"closed_at":"2011-10-17T11:58:55Z","user":{"gravatar_id":"0f60a1b8a12e17b720dffe9ca341844f","avatar_url":"https://secure.gravatar.com/avatar/0f60a1b8a12e17b720dffe9ca341844f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/bvk4you","id":1132912,"login":"bvk4you"},"html_url":"https://github.com/nicklockwood/iCarousel/issues/46","labels":[],"state":"closed"},"legacy":{"number":46,"action":"closed","issue":1927047}}