Inferis/ViewDeck — Issue #4: Tiny gap on top
Author: RayFranco
Created: 2012-01-06 00:40:08+00:00
State: open

Hi,

Hope I'm not opening an useless issue due to my small knowledge in iOS development, but I'll try.

Everything works how I expect and helps me a lot. Just a little thing I can't figure out what I'm doing wrong, is when I change centerController from the leftController :

```ObjectiveC
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
[self.viewDeckController closeLeftViewBouncing:^(IIViewDeckController *controller)
{
self.viewDeckController.centerController = [[UINavigationController alloc] initWithRootViewController:[self.menuControllers objectAtIndex:indexPath.row]];
}];
}
```
Where menuControllers is an array of UIViewControllers (for the ease of registerting new items in my menu)

I got this small gap on top of my view when it come to change.

![The gap](http://f.cl.ly/items/1R1M193P2H2w3K1X3u33/Image%202012.01.06%201:37:27%20AM.png)

Do you have any idea where this come from, and tell me if I did something wrong by updating the centerController this way ?

Thanks for helping, this is for school project purpose :)