The problem is that I have a SplitViewController and the ContainerView is in the DetailViewController with the grid view embedded via Storyboard.
I am trying to use the following to get the bounds but it's still not working.
SCViewController *dashboard = (SCViewController *)[[self.splitViewController.viewControllers lastObject] topViewController];
if (dashboard == [[self navigationController].viewControllers objectAtIndex:0])
UIView *gridContainer = (UIView *)[dashboard.view viewWithTag:5];
NSLog(@"Bounds: %f, %f", gridContainer.frame.size.width, gridContainer.frame.size.height);
shinobiDataGrid = [[ShinobiDataGrid alloc] initWithFrame:CGRectInset([gridContainer bounds], 0, 0)];
CGRect rect = CGRectMake(0, 0, self.view.frame.size.width, 300);
NSLog(@"Bounds: %f, %f", rect.size.width, rect.size.height);
shinobiDataGrid = [[ShinobiDataGrid alloc] initWithFrame:CGRectInset(rect, 0, 0)];