-
Couldn't load subscription status.
- Fork 4.2k
Closed
Labels
Description
I'm just wrapping my head around the whole Rx thing so apologies if this is something of my own doing.
My viewDidLoad method looks something like this:
override func viewDidLoad() {
super.viewDidLoad()
locationManager.rx_didChangeAuthorizationStatus
>- subscribeNext() { status in
println(status)
}
>- disposeBag.addDisposable
}
Upon execution an exception is raised inside the rx_didChangeAuthorizationStatus CLLocationManager extension.
Could not cast value of type '__NSCFNumber' (0x7fe523b6b0b8) to 'C.CLAuthorizationStatus' (0x102105250).
Using swift 1.2 and iOS SDK 8.4