How to remove iPad support from my application?

I created a storyboard app for the iPad, but we decided not to support the iPad for starters. Do I need to disable this somewhere in my project or delete it? It seems that it is not possible to find any information on its editing after the creation of the project.

+4
source share
2 answers

At a minimum, you need to disable iPad support. For this:

Click the target in the project explorer. The General tab has a Deployment Information section. For devices, change the selection from Universal to iPhone.

example

You can then remove the iPad storyboard from the project explorer.

example2

+5
source

You need to delete the storyboard. Here are the steps

1) Main.storyboard .

2) xib , , .

3) plist.

4) appdelegate didFinishLaunchingWithOptions :

self.window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen])];

[self.window makeKeyAndVisible]; :

  • (BOOL) : (UIApplication *) didFinishLaunchingWithOptions: (NSDictionary *) launchOptions { self.window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen])];

    // .

    TestViewController * test = [[TestViewController alloc] initWithNibName: @ "TestViewController" bundle: nil];  UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController: test];  self.window.rootViewController = nav;

    [self.window makeKeyAndVisible];

    return YES; }

, nib,  TestViewController * test = [[TestViewController alloc] init];

, :)

0

All Articles