Skip to content

Commit

Permalink
Default to 0 components and items
Browse files Browse the repository at this point in the history
  • Loading branch information
sergdort committed Jul 7, 2017
1 parent 90cd66a commit 52c6022
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions RxCocoa/iOS/Proxies/RxPickerViewDataSourceProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ let pickerViewDataSourceNotSet = PickerViewDataSourceNotSet()

final class PickerViewDataSourceNotSet: NSObject, UIPickerViewDataSource {
func numberOfComponents(in pickerView: UIPickerView) -> Int {
rxAbstractMethod()
return 0
}

func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
rxAbstractMethod()
return 0
}
}

Expand Down Expand Up @@ -69,8 +69,8 @@ public class RxPickerViewDataSourceProxy

/// For more information take a look at `DelegateProxyType`.
public class func currentDelegateFor(_ object: AnyObject) -> AnyObject? {
let tableView: UITableView = castOrFatalError(object)
return tableView.dataSource
let pickerView: UIPickerView = castOrFatalError(object)
return pickerView.dataSource
}

/// For more information take a look at `DelegateProxyType`.
Expand Down

0 comments on commit 52c6022

Please sign in to comment.