How to change view of the viewcontroller when change the orientation in iPhone?

后端 未结 3 934
悲哀的现实
悲哀的现实 2021-01-28 19:13

I\'m developing an iPhone application which supports 2 orientations. I have 2 UIView files for this view controller. I need to set corresponding UIView file to the view controll

3条回答
  •  既然无缘
    2021-01-28 19:58

    just give this delegate in your controller for both orientations.

    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
        return YES;
    }
    

提交回复
热议问题