UIPickerView not reusing views

Originator:rics
Number:rdar://22201878 Date Originated:8/8/2015
Status:Open Resolved:
Product:iOS Product Version:iOS 9 beta 5
Classification:Performance Reproducible:Always
 
Summary:
When using the UIPickerViewDelegate callback - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(nullable UIView *)view the reusable view is always nil.

Steps to Reproduce:
See attached project.

1. Create a UIPickerView.
2. Implement delegate method.

Expected Results:
After enough views have been created to fill the visible rows, a cached view is returned.

Actual Results:
Cached views are never returned, the reusable view is always nil.

Version:
iOS 9 beta 5

Notes:


Configuration:
Simulator iPhone 6

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!