티스토리 뷰
8.0에서 UIActionSheet가 사라졌습니다.
UIAlertController로 통합이 되었다고 하네요.
다음과 같이 코딩하면 됩니다.
UIAlertController* controller = [UIAlertController alertControllerWithTitle:@"Select" message:nil preferredStyle:UIAlertControllerStyleActionSheet];
[controller addAction:[UIAlertAction actionWithTitle:@"One" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action) {
}]];
[controller addAction:[UIAlertAction actionWithTitle:@"Two" style:UIAlertActionStyleDefault handler:^(UIAlertAction* action) {
}]];
[controller addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil]];
[self showViewController:controller sender:nil];
'Mobile > iOS' 카테고리의 다른 글
| [iOS]위치정보 사용 가능 확인 (0) | 2016.03.03 |
|---|---|
| [iOS]8이상에서 위치정보 사용하기 (0) | 2016.03.03 |
| [iOS]presentModalViewController 대체 (0) | 2016.03.02 |
| [iOS]Animation ViewController 전환 (0) | 2016.03.02 |
| [iOS]mainBundle과 document folder 사용 (0) | 2016.02.26 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- windows10
- war
- Xcode
- Gradle
- nodejs
- ubuntu
- SWIFT
- rxswift
- docker
- tomcat
- android
- php
- cocoapods
- Python
- Java
- Linux
- Codable
- git
- centos8
- ios
- Spring
- Kotlin
- intellij
- enum
- Windows
- go
- github
- golang
- CentOS
- MySQL
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함