Source> http://cafe.naver.com/mcbugi/71945
1. create new Project 'Window-based Application'
2. delete '*.xib' file
3. delete these two lines in '*.plist' file
<key>NSMainNibFile</key>
<string>MainWindow</string>
4. replace UIApplicationMain argument in 'main.m' file
int retVal = UIApplicationMain(argc, argv, nil, @"WindowsNoXibAppDelegate");
5. delete 'IBOutlet' string in window @property in '*AppDelegate.h' file
@property (nonatomic, retain) UIWindow *window;
6. insert few lines to method in '*AppDelegate.m' file
- (void)applicationDidFinishLaunching:(UIApplication *)application {
UIWindow *localWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
localWindow.backgroundColor = [UIColor redColor];
self.window = localWindow;
[localWindow release];
// Override point for customization after application launch
[window makeKeyAndVisible];
}
[Ref.]
http://code-dojo.blogspot.com/2009/11/build-iphone-application-without.html
1. create new Project 'Window-based Application'
2. delete '*.xib' file
3. delete these two lines in '*.plist' file
<key>NSMainNibFile</key>
<string>MainWindow</string>
4. replace UIApplicationMain argument in 'main.m' file
int retVal = UIApplicationMain(argc, argv, nil, @"WindowsNoXibAppDelegate");
5. delete 'IBOutlet' string in window @property in '*AppDelegate.h' file
@property (nonatomic, retain) UIWindow *window;
6. insert few lines to method in '*AppDelegate.m' file
- (void)applicationDidFinishLaunching:(UIApplication *)application {
UIWindow *localWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
localWindow.backgroundColor = [UIColor redColor];
self.window = localWindow;
[localWindow release];
// Override point for customization after application launch
[window makeKeyAndVisible];
}
[Ref.]
http://code-dojo.blogspot.com/2009/11/build-iphone-application-without.html
'◆ 무한한 가능성 > & MAC - iOS' 카테고리의 다른 글
[iPhone] Cheat Sheet: The Objective-C 2.0 Programming Language (0) | 2010.08.10 |
---|---|
[iPhone] 31 Example Applications (0) | 2010.08.10 |
[iPhone] 탭바 베이스로 뷰컨트롤러 구성하기 (0) | 2010.08.08 |
[iPhone] OS 개발 자료 총정리 (0) | 2010.08.06 |
[iPhone] Site link about developing Web (0) | 2010.08.04 |