티스토리 뷰
오늘은 스토리보드를 이용하지 않고 그냥 MainXib를 가져와서 사용하는 방법을 알아본다.
방법은 다음과 같이 개발하도록 한다.
아래에서 ViewController는 UIViewController를 상속받은 Class이다.
AppDelegate 파일의 didFinishLaunchingWithOptions에 넣어주도록 한다.
ViewController* controller = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]; self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window.frame = [[UIScreen mainScreen] bounds]; [self.window setRootViewController:controller]; [self.window makeKeyAndVisible]; return YES; |
'Mobile > iOS' 카테고리의 다른 글
[iOS]코드로 TabBarController + NavigationController (0) | 2016.02.23 |
---|---|
[iOS]Storyboard를 이용하지 않는 Navigation만들기 (0) | 2016.02.16 |
[iOS]iPhone용 Splash Image (0) | 2016.01.27 |
[iOS]아이폰 화면 꺼짐 방지 (0) | 2016.01.27 |
[iOS]함수 포인터와 코드 블럭 (0) | 2016.01.26 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- centos8
- ios
- MySQL
- android
- windows10
- php
- war
- cocoapods
- Python
- Linux
- tomcat
- Gradle
- Spring
- Kotlin
- ubuntu
- docker
- Xcode
- enum
- SWIFT
- go
- github
- Codable
- git
- Java
- nodejs
- rxswift
- CentOS
- golang
- intellij
- Windows
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함