1 ViewController and 2 XIBs for 2 orientations, how?
One ViewController is shared by two XIBs, i.e. there are one XIB for horizontal layout and another one for 开发者_开发技巧vertical layout. Both XIBs are linked to the same ViewController, i.e.:
HiScoreViewController.h
HiScoreViewController.m
HiScoreViewController-Horizontal.xib
HiScoreViewController-Vertical.xib
The question is how I can (re)load the corresponding XIB in didRotateFromInterfaceOrientation
?
Thanks!
You can use different views in One View Controller. Can change the Views based on the Orientation.
精彩评论