zoukankan      html  css  js  c++  java
  • IOS Note

    Application Delegate(应用程序委托)

    Application Name: SingleView

    SingleViewAppDelegate.h

    #import <UIKit/UIKit.h>
    
    @interface SingleViewAppDelegate : UIResponder
        <UIApplicationDelegate>
        
    @property (strong, nonatomic) UIWindow *window;
    
    @property (strong, nonatomic) SingleViewViewController *viewController;
    
    @end

    SingleViewAppDelegate.m

    #import "SingleViewAppDelegate.h"
    #import "SingleViewViewController.h"
    
    @implementation SingleViewAppDelegate
    
    @synthesize window = _window;
    @synthesize viewController = _viewController;
    
    - (void) dealloc
    {
        [_window release];
        [_viewController release];
        [super dealloc];
    }
    
    - (BOOL) application: (UIApplication *)application
    didFinishLaunchingWithOptions: (NSDictionary *)launchOptions
    {
        self.window = [[[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]] autorelease];
        self.viewController = [[[SingleViewViewController alloc]
                                initWithNibName: @"SingleViewViewController"
                                bundle: nil] autorelease];
        self.window.rootViewController = self.viewController;
        [self.window makeKeyAndVisible];
        
        return YES;
    }
  • 相关阅读:
    第15次Scrum会议(10/27)【欢迎来怼】
    C语言--第三周作业评分和总结(5班)
    例行报告(20171020-20171025)
    MongoDB主从复制
    副本集
    MongoDB索引
    聚合框架
    MongoDB查询操作
    MongoDB增删改
    MongoDB基本安装
  • 原文地址:https://www.cnblogs.com/davidgu/p/3469823.html
Copyright © 2011-2022 走看看