티스토리 뷰
enum numbers001 : Int {
case zero // 0
case one // 1
case two // 2
}
var number000 : numbers001 = .zero
print(number000) // result : zero
var number000Int = number000.rawValue
print(number000Int) // result : 0
var number001 : numbers001 = .one
print(number001) // result : one
var number001Int = number001.rawValue
print(number001Int) // result : 1
var number002 : numbers001 = .two
print(number002) // result : two
var number002Int = number002.rawValue
print(number002Int) // result : 2
// blank
enum numbers002 : Int {
case ten = 10 // 10
case twenty = 20 // 20
case blank // 21
case thirty = 30 // 30
}
var number010 : numbers002 = .ten
print(number010) // result : ten
var number010Int = number010.rawValue
print(number010Int) // result : 10
var number020 : numbers002 = .twenty
print(number020) // result : twenty
var number020Int = number020.rawValue
print(number020Int) // result : 20
var blank : numbers002 = .blank
print(blank) // result : blank
var blankInt = blank.rawValue
print(blankInt) // result : 21
var number030 : numbers002 = .thirty
print(number030) // result : ten
var number030Int = number030.rawValue
print(number030Int) // result : 30
'ios' 카테고리의 다른 글
closure - sort (0) | 2022.05.24 |
---|---|
enum - case, case, case (0) | 2022.05.24 |
main interface (start view) (0) | 2022.05.24 |
func (func) (0) | 2022.05.23 |
function (0) | 2022.05.23 |
- Total
- Today
- Yesterday
- kotlin
- web view
- 웹뷰
- create project
- logcat
- StringWriter
- 화면 방향 고정
- web view settings
- 로그캣
- Inputmode
- Android
- logtag
- javaClass
- custom web view
- simpleName
- new project
- 화면 고정
- create new project
- 코틀린
- 안드로이드
- android studio
- 영문 키보드
- screenorientation
- permissions
- 외부 브라우저
- check permissions
- web chrome view
- 클래스 이름
- defaultInputmode
- andorid
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |