1. 新建一个Window-based Application 命名为PremierLeague
2.PremierLeague-Info.plist 中的 NSMainNibFile 删掉
3.删掉MainWindow.xib
4. AppDelegate.m 加入测试
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Override point for customization after application launch
window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
CGRect frame = [UIScreen mainScreen].applicationFrame;
UIView *view = [[UIView alloc] initWithFrame:frame];
view.backgroundColor = [UIColor grayColor];
[window addSubview:view];
[view release];
[window makeKeyAndVisible];
}
看到grayColor继续 下面开始加入Three20
5. 新建Group Dependencies/Three20
6.将/Users/fred/Documents/three20/src 目录下的项目拖进新建的Three20 Group
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <Three20Core/Three20Core.h>
#endif
8 这时是不能通过编译的,要配置引入头文件的路径