合金弹头

A flasher’s notes qq:830911

导航

PremierLeagueNote

Posted on 2010-07-22 09:44  合金弹头  阅读(170)  评论(0编辑  收藏  举报

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 allocinitWithFrame:[[UIScreen  mainScreenbounds]];

CGRect frame = [UIScreen mainScreen].applicationFrame;

UIView *view = [[UIView allocinitWithFrame: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




再把Three20.bundle放到Resources里

7 在PremierLeague_Prefix.pch中加入

#ifdef __OBJC__

    #import <Foundation/Foundation.h>

    #import <UIKit/UIKit.h>

    #import <Three20Core/Three20Core.h>

#endif


8 这时是不能通过编译的,要配置引入头文件的路径



到此Three20的配置就完成了