zoukankan      html  css  js  c++  java
  • UINavigationController

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
        // Override point for customization after application launch.
        self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController" bundle:nil] autorelease];
        //self.window.rootViewController = self.viewController;
       
        [self.window addSubview:self.viewController.view];
        UINavigationController * navigationController = [[UINavigationController alloc]initWithRootViewController:self.viewController];
        [self.window addSubview:navigationController.view];
         [self.window makeKeyAndVisible];
        return YES;
    }
    
    
    - (IBAction)btnPress:(id)sender
    {
        ViewController *viewc = [[ViewController alloc]init];
        [self.navigationController pushViewController:viewc animated:YES];
    }
  • 相关阅读:
    最短路--floyd算法模板
    poj2367 拓扑序
    poj1094 拓扑序
    hdu3231 拓扑序
    hdu1811 并查集+拓扑序
    hdu3342 拓扑序
    hdu2647 拓扑序
    hdu1285 拓扑序
    UVA10305 拓扑序
    $.proxy
  • 原文地址:https://www.cnblogs.com/qingjoin/p/3152903.html
Copyright © 2011-2022 走看看