티스토리 뷰
6.0 초과 버전에서는 지원하지 않는 메소드 presentModalViewController를 대체하려면 다음과 같이 하면 된다.
presentViewController메소드는 5.0부터 지원을 한다.
presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated를
presentViewController:(UIViewController *)viewControllerToPresent animated:(BOOL)flag completion:(void (^ __nullable)(void))completion 으로 대체를 한다.
예를 들자면
* before
[self presentModalViewController:controller animated:YES];
* after
[self presentViewController:controller animated:YES completion:nil];
잘된다.
'Mobile > iOS' 카테고리의 다른 글
| [iOS]8이상에서 위치정보 사용하기 (0) | 2016.03.03 |
|---|---|
| [iOS]8.0에서 사라진 UIActionSheet (0) | 2016.03.02 |
| [iOS]Animation ViewController 전환 (0) | 2016.03.02 |
| [iOS]mainBundle과 document folder 사용 (0) | 2016.02.26 |
| [iOS]xib로 TabBarController + NavigationController (0) | 2016.02.23 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- cocoapods
- ubuntu
- nodejs
- enum
- SWIFT
- docker
- android
- github
- CentOS
- MySQL
- Codable
- ios
- war
- intellij
- Kotlin
- centos8
- Windows
- golang
- tomcat
- git
- Python
- windows10
- rxswift
- Gradle
- Spring
- Java
- go
- Xcode
- Linux
- php
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함