Current location - Health Preservation Learning Network - Healthy weight loss - How to change the width of tableview by switching between landscape and portrait in ios?
How to change the width of tableview by switching between landscape and portrait in ios?
ios

Tableview turns off horizontal and vertical screen switching by adding the following three functions:

1. If it is on the UIViewController, just add three functions to the. The m file corresponding to UIViewController.

2. If it's on UITabBarController, just go to. The m file corresponding to UITabBarController.

3. If it is on the UINavigationController, just call the. The m file corresponding to UINavigationController.