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;
}

最新文章

  1. nodejs处理url工具
  2. javascript继承的三种模式
  3. Android之layout_weight解析
  4. Prince2的七大原则(7)
  5. onActivityResult传值的使用
  6. jquery表单提交和重置
  7. 学好C++必须要注意的十八个问题
  8. 通过用 .NET 生成自定义窗体设计器来定制应用程序
  9. light oj 1214 - Large Division
  10. 吐槽一下CSDN的封停审查机制
  11. JS实现一键复制功能
  12. php 备份数据库脚本
  13. MYSQL delete性能优化!
  14. 编程算法 - 最长公共子序列(LCS) 代码(C)
  15. Oracle db中 CONNECT role的含义
  16. 正则表达式判断ip地址
  17. jieba库分词统计
  18. mysql sql mode
  19. 未能找到 CodeDom 提供程序类型“Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider,
  20. GetNumber的实现(Python &amp; Java &amp; Golang)

热门文章

  1. 【DFS深搜初步】HDOJ-2952 Counting Sheep、NYOJ-27 水池数目
  2. 淘宝语音搜索的实现——html5
  3. metadata lock
  4. POJ 1064 Cable master
  5. 【转载】ACM总结——dp专辑
  6. Maximum Product Subarray JAVA实现
  7. oracle-Oracle试题
  8. Android访问权限大全
  9. Selenium2Library系列 keywords 之 _SelectElementKeywords 之 _get_select_list_options_selected(self, locator)
  10. C++11 能好怎?