IOS Note - View Controller(视图控制器)
2024-10-19 12:34:06
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;
}
最新文章
- nodejs处理url工具
- javascript继承的三种模式
- Android之layout_weight解析
- Prince2的七大原则(7)
- onActivityResult传值的使用
- jquery表单提交和重置
- 学好C++必须要注意的十八个问题
- 通过用 .NET 生成自定义窗体设计器来定制应用程序
- light oj 1214 - Large Division
- 吐槽一下CSDN的封停审查机制
- JS实现一键复制功能
- php 备份数据库脚本
- MYSQL delete性能优化!
- 编程算法 - 最长公共子序列(LCS) 代码(C)
- Oracle db中 CONNECT role的含义
- 正则表达式判断ip地址
- jieba库分词统计
- mysql sql mode
- 未能找到 CodeDom 提供程序类型“Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider,
- GetNumber的实现(Python &; Java &; Golang)
热门文章
- 【DFS深搜初步】HDOJ-2952 Counting Sheep、NYOJ-27 水池数目
- 淘宝语音搜索的实现——html5
- metadata lock
- POJ 1064 Cable master
- 【转载】ACM总结——dp专辑
- Maximum Product Subarray JAVA实现
- oracle-Oracle试题
- Android访问权限大全
- Selenium2Library系列 keywords 之 _SelectElementKeywords 之 _get_select_list_options_selected(self, locator)
- C++11 能好怎?