> bitmask 연산중 & 연산의 결과는 nil인지 아닌지로 판단한다.
if multipleOptions & .SecondOption != nil { // see note
println("multipleOptions has SecondOption")
}
http://stackoverflow.com/questions/24066170/swift-ns-options-style-bitmask-enumerations
ISSUE
import XCTest
import topic
class SchemeHandlerTest: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func
ISSUE
ios에서 push 테스트를 해야 하는데 Device Token을 최초에만 받고 다시 받을수가 없었다. 멘붕...
RESOLVE
* 앱을 디바이스에서 삭제한다.
* 디바이스를 껐다가 킨다.
* 설정 > 일반 > 날짜와 시간에서 날짜를 1~2일 정도 앞으로 옮긴다.
* 디바이스를 다시
자동완성이 안되어서 조금 헤매였다.
// objective-c
[self class]
// swift
self.dynamicType
LINK
http://stackoverflow.com/questions/24049673/swift-class-introspection-generics