Develop
2015.02.12 11:51
[ios] StoryBoard(xib) 없이 프로젝트 만들기
Views 1157 Comment 0
Attachment '1' |
---|
AppDelegate.h
#import <UIKit/UIKit.h> #import "MainViewController.h" @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @property (strong, nonatomic) UINavigationController *navigationController; @property (strong, nonatomic) MainViewController *mainViewController; @end
AppDelegate.m
#import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window.backgroundColor = [UIColor whiteColor]; self.mainViewController = [[MainViewController alloc] init]; self.navigationController = [[UINavigationController alloc] initWithRootViewController:_mainViewController]; //[self.navigationController setNavigationBarHidden:YES]; self.window.rootViewController = _navigationController; [self.window makeKeyAndVisible]; return YES; } ... @end
No. | Category | Subject | Author | Date | Views |
---|---|---|---|---|---|
373 | Develop | [php] 마시마로 캐릭터 방명록 | hooni | 2003.04.23 | 8272 |
372 | Develop | [c] 문자열 정렬 함수 qsort() | hooni | 2003.04.23 | 8274 |
371 | Develop | [c] selec()를 이용한 입출력 다중화 | hooni | 2013.04.23 | 8274 |
370 | Develop | [c++] 현승이가 준 메신저 소스.. ㅋㅋ | hooni | 2013.04.23 | 8300 |
369 | Develop | [c++] 레지스트리 편집하는 부분..ㅡㅡ; | hooni | 2013.04.23 | 8307 |
368 | Develop | [c] 이진트리(binary tree)의 운행.. | hooni | 2003.04.23 | 8310 |
367 | Develop | [js] selectbox 선택 후 input 박스에 적용 | hooni | 2013.04.23 | 8348 |
366 | Develop | [swift] NotificationCenter 간단 예제 | hooni | 2021.01.27 | 8348 |
365 | Develop | [js] 쿠키(cookie)에 대한 설명과 예제.. | hooni | 2003.04.23 | 8351 |
364 | Develop | [c] 암호 알고리즘 소스.. | hooni | 2013.04.23 | 8353 |
363 | Develop | [c] 콘솔에서 패스워드 입력시 문자 보이지 않게 하는 코드 | hooni | 2013.04.23 | 8359 |
362 | Develop | [java] 채팅 프로그램.. swing 사용.. | hooni | 2013.04.23 | 8371 |