开发者

1 ViewController and 2 XIBs for 2 orientations, how?

开发者 https://www.devze.com 2023-01-25 02:37 出处:网络
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.:

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

精彩评论

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