This doesn't actually work as the layout indices aren't actually static. For example, my config is set up to only have 3 layouts. You could have your config set up to have the layouts in a different order. I would recommend passing a layout class and searching the layouts array for the right object and index. Also, stylistically this is too much spacing around `(NSUInteger)`.