开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜