Skip to content

Commit 1303ec1

Browse files
committed
Improves behavior of data sources on iOS 10. ReactiveX#999
1 parent c594e28 commit 1303ec1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

RxCocoa/iOS/Proxies/RxCollectionViewDataSourceProxy.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CollectionViewDataSourceNotSet
2020
: NSObject
2121
, UICollectionViewDataSource {
2222
func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
23-
rxAbstractMethodWithMessage(dataSourceNotSet)
23+
return 0
2424
}
2525

2626
// The cell that is returned must be retrieved from a call to -dequeueReusableCellWithReuseIdentifier:forIndexPath:

RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ class TableViewDataSourceNotSet
2020
: NSObject
2121
, UITableViewDataSource {
2222
func numberOfSectionsInTableView(tableView: UITableView) -> Int {
23-
rxAbstractMethodWithMessage(dataSourceNotSet)
23+
return 0
2424
}
2525

2626
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
27-
rxAbstractMethodWithMessage(dataSourceNotSet)
27+
return 0
2828
}
2929

3030
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {

0 commit comments

Comments
 (0)