FLYNNLABAboutMeCodingActivityStudy 2024초등수학링크오프너릴리즈노트WordTest
bitmask in swift
2014-12-04
swift, bitmask, ios

bitmask 연산중 & 연산의 결과는 nil인지 아닌지로 판단한다.

if multipleOptions & .SecondOption != nil {     // see note
    println("multipleOptions has SecondOption")
}

http://stackoverflow.com/questions/24066170/swift-ns-options-style-bitmask-enumerations