Skip to content

Exception raised using rx_didChangeAuthorizationStatus #89

@kjf

Description

@kjf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions