Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5020
IGGridView Cell Selection Before VC viewDidAppear:animated
posted

My view controller is unable to select a IGGridView's cell before viewDidAppear. There seems to be a requirement for the grid to fully load/render before I can select a cell. This makes preselection look jumpy.

The IGGridView method selectCellAtPath:animated:scrollPosition has no effect until after viewDidAppear.

This isn't really a fix... but it's getting me by until I know how to better handle preloading.

-(void)viewDidAppear:(BOOL)animated

{

    if(self.contentGrid.pathForSelectedCell.columnIndex != self.selectedIndex)

    {

        self.selectedIndex = self.selectedIndex;

    }    

    [super viewDidAppear:animated];

}

Parents
  • 40030
    Offline posted

    Hey Caylan, 

    I created a modified version of the sample you sent me this morning. It's real basic, but i'm just trying to understand the problem a little better. 

    In the sample, i'm creating a grid in ViewDidLoad, and selecting a cell. 

    This is working in my case, so it probably doesn't match your scenario. If you could modify it to reflect you're scenario a bit better, i'd be happy to try and get to the bottom of it. 

    Thanks, 

    -SteveZ

    PageContainerPlay.zip
Reply Children