Crash inside UIResponder chain

Originator:pc.niedertscheider
Number:rdar://21673802 Date Originated:04-Jul-2015 11:47 AM
Status:Open Resolved:
Product:iOS Product Version:9
Classification:Serious Bug Reproducible:Yes
 
I tried to add a search bar in a UICollectionView as a UICollectionReusableView. 
When you activate the search bar by tapping on it, and cancel it using the cancel button or by scrolling, doing this multiple times results in the app crashing inside the UIResponder.

Here is an example project: http://techprimate.com/CollectionViewResponderCrash.zip

Steps to Reproduce:
1. Open the example project
2. Run the project on the Simulator or iPhone 5S using iOS 8
3. Tap on the search bar
4. Tap on "cancel"
5. Repeat step 3 and 4 four five times until app crashes

Expected Results:
I expect the app not to crash when using the search bar

Actual Results:
The app crashes inside the UIResponder

Version:
iOS 8.4 (12H141)

Notes:
I already discussed the problem with other developers on the website stackoverflow.com:
http://stackoverflow.com/q/31098831/3515302?sem=2

The search algorithm is not implemented yet!

The example project includes a short video showing the error

Configuration:
iPhone 5S 16 GB & Simulator

--- Apple ---

Do you see any difference in behavior in the latest iOS 9 beta?  Does the issue still reproduce exactly the same? 

Please test with this release.  If you still have issues, please provide any relevant logs or information that could help us investigate.

iOS 9
https://developer.apple.com/ios/download/

--- Apple ---
Do you see any difference in behavior in the latest iOS 9 beta?  Does the issue still reproduce exactly the same? 

Please test with this release.  If you still have issues, please provide any relevant logs or information that could help us investigate.

iOS 9
https://developer.apple.com/ios/download/

--- Developer ---
I just tested it with iOS 9 (13A4293g) in the simulator and I am downloading the newest version right now. 
I am not able to test this on a real device right now. 

It looks like the issue is only in iOS 8 and not in iOS 9 anymore

--- Apple ---
Thanks for the update.  Upgrading is the solution then.

We are closing this bug report.

If you have questions regarding the resolution of this issue, please update your bug report with that information.

Please be sure to regularly check new Apple releases for any updates that might affect this issue.

--- Developer ---
Alright thank you.
Basically I am not able to use this way in iOS 8? 
What would you recommend me to provide compatibility with older iOS versions? Just don't provide compatibility?

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!