The simple answer to your question in this case is: You will have to do this programmatically, or put it in a UICollectionView. UICollectionViews are actually meant for displaying many items and not just three as in your case, so there is really just one thing left: do it in code!
In the viewController that is handling this part of your app you should run this line somewhere in your viewDidLoad
or init
methods:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(didRotate:)
name:UIDeviceOrientationDidChangeNotification
object:nil];
This will call the method - (void)didRotate:(NSNotification *)notification
You could implement this method like this:
- (void) didRotate:(NSNotification *)notification
{
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
if (orientation == UIDeviceOrientationLandscapeLeft)
{
NSLog(@"Landscape Left!");
}
}
And put your layout code after you found out which orientation the device has.
Credits: I borrowed the code from this thread, Thx View rotation notifications: why didRotateFromInterfaceOrientation: doesn't get called?