Tables and collections need to be redrawn when you change from portrait to landscape. Listen for the event, then do the redraw like this.

#pragma mark - Orientation

- (void)addOrientationObserver
{
    [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];

    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(orientationChanged:)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];

}

- (void)orientationChanged:(NSNotification *)notification
{
    [self.tableView reloadData];
}
Advertisements