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];

}