一个简单的iPhone项目及代码
2010-08-26 11:04:00 来源:WEB开发网@interface HelloUserAppDelegate : NSObject
UIWindow *window;
HelloUserViewController *viewController;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet HelloUserViewController *viewController;
@end
//
// HelloUserAppDelegate.h
// HelloUser
//
// Created by sin francis on 10-8-26.
// Copyright __MyCompanyName__ 2010. All rights reserved.
//
#import
@class HelloUserViewController;
@interface HelloUserAppDelegate : NSObject
UIWindow *window;
HelloUserViewController *viewController;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet HelloUserViewController *viewController;
@end
Delegata的实现:
HelloUserAppDelegate.m
Cpp代码
//
// HelloUserAppDelegate.m
// HelloUser
//
// Created by sin francis on 10-8-26.
// Copyright __MyCompanyName__ 2010. All rights reserved.
//
#import "HelloUserAppDelegate.h"
#import "HelloUserViewController.h"
#import "MyNewsViewController.h"
@implementation HelloUserAppDelegate
@synthesize window;
@synthesize viewController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after app launch
[window addSubview:viewController.view];
[window makeKeyAndVisible];
return YES;
}
- (void)dealloc {
- ››简单的修 改 SQL Server 2000数据库的端口号
- ››简单的修 改 MySQL数据库的端口号
- ››一个网站的内链布局设置技巧
- ››iphone图片拉伸的几种方法
- ››iphone正则表达式的简单使用
- ››一个专业刷流量刷排名的代码页
- ››iPhone开发Unresolved Symbols CAKeyframeAnimati...
- ››IPhone开发-“此证书是由未知颁发机构签名”解决方...
- ››IPhone开发-整合私钥和证书,生成.p12文件
- ››iPhone应用开发-UIPickerView选取器详解
- ››iphone 获取屏幕的宽度和高度
- ››iPhone读取工程包中的二进制文件
更多精彩
赞助商链接