程序真正的入口
2014-09-28 23:16
176 查看
#import "TRAppDelegate.h" @implementation TRAppDelegate //程序真正的入口 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //创建window对象 self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point for customization after application launch. //设置window对象的背景颜色 self.window.backgroundColor = [UIColor whiteColor]; //向window对象中加一个标签对象 UILabel *label = [[UILabel alloc]init]; label.text = @"Hello world."; CGRect frame = {50, 100, 100, 30}; label.frame = frame; [self.window addSubview:label]; //让window对象显示出来 [self.window makeKeyAndVisible]; //程序继续 return YES; } @end
相关文章推荐
- Android程序的真正入口Application
- 程序的真正入口
- Android程序的真正入口Application
- Android程序的真正入口Application
- MFC程序的启动过程——先全局对象theApp(第一入口),后WinMain(真正入口),会引爆pApp->InitInstance从而创建窗口(程序员入口)
- [逆向基础] 找到程序真正的入口
- Android程序的真正入口Application
- android程序的真正入口点之application
- android程序的真正入口
- 找到程序真正的入口(使用IDE追踪)
- Android程序的真正入口Application
- Application是Android程序的真正入口
- Android程序的真正入口Application
- 真正的android程序入口
- [zhuan]Android程序的真正入口Application
- 可执行程序的入口点在那里?(强化概念:程序真正的入口是mainCRTstartup)
- 我的互联网终极猜想:真正的个人入口
- 当你真正开始自己的程序人生的时候,你什么感觉
- 常见各种语言编写的程序的入口点代码
- 寻找真正的入口(OEP)--广义ESP定律