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.