ios tableViewController

盖翰池
2023-12-01

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{

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

    // Override point for customization after application launch.

    self.window.backgroundColor = [UIColor whiteColor];

    

    mainViewController *controller = [[mainViewController alloc] init];

//    controller.view.frame = self.window.bounds;

        controller.view.frame = CGRectMake(20, 20, 200, 200);

    UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:controller];

    [self.window addSubview:navigationController.view];

    

    

    

    

    

    [self.window makeKeyAndVisible];

    return YES;

}

 类似资料:

相关阅读

相关文章

相关问答