iphone hello world 我的第一个程序
来源:互联网 发布:奥巴马 知乎 编辑:程序博客网 时间:2024/04/28 12:09
//
// AppDelegate.m
// hello
//
// Created by cao zhenwei on 12-7-27.
// Copyright (c) 2012年 . All rights reserved.
//
#import "AppDelegate.h"
@implementation AppDelegate
@synthesize window = _window;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindowalloc]initWithFrame:[[UIScreenmainScreen]bounds]];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColorblackColor];
UILabel *label = [[UILabelalloc]initWithFrame:CGRectMake((self.window.frame.size.width -500)/2, (self.window.frame.size.height)/2,500,20)];
label.text = @"Hello Word";
label.backgroundColor = [UIColorblueColor];
label.textColor = [UIColorgreenColor];
label.textAlignment =UITextAlignmentCenter;
[self.window addSubview:label];
[self.windowmakeKeyAndVisible];
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application
{
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application
{
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application
{
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end
- iphone hello world 我的第一个程序
- Hello World -- 我的第一个程序
- c++ 我的第一个程序 hello world!
- 我的第一个YII程序hello world
- Hello World -- 也是我的第一个程序
- 我的第一个C#程序--Hello world
- 我的第一个Windows程序, Hello,world!
- 我的第一个Delphi程序(Hello World)
- 我的第一个 java 小程序 Hello World!
- 我的第一个Swift程序 Hello World
- 我的第一个Java“Hello World!”
- 基于Xcode4开发第一个iPhone程序:“Hello World”
- 基于Xcode4开发第一个iPhone程序:“Hello World”
- 基于Xcode4开发第一个iPhone程序:“Hello World”
- 基于Xcode4开发第一个iPhone程序:“Hello World”
- 基于Xcode4开发第一个iPhone程序:“Hello World”
- 基于Xcode4开发第一个iPhone程序:“Hello World”
- 基于Xcode4开发第一个iPhone程序:“Hello World”
- Java编码分析
- HashMap 使用小结
- 浅析Android NDK开发技术
- Wince6 RIL层移植
- c#自动更新+安装程序的制作
- iphone hello world 我的第一个程序
- Notification防止程序退出,二次点击才能推出
- VIM快速编辑示例
- VS制作安装程序时删除以前旧版本
- 做IOS开发这一年
- 使用源码搭建IPV6 IPsec VPN隧道
- 仿人人网右边可推出的效果(带拖动)
- 用HTML5, CSS3, JavaScript开发Android, iOS应用框架
- GPRS管理与创建APN拨号连接