Widget becomes unresponsive after scrolled off screen and back

Originator:greg
Number:rdar://22545070 Date Originated:2015-09-02
Status:Open Resolved:
Product:iOS Product Version:9.0
Classification:Crash/Hang/Loss Reproducible:Always
 
In iOS 9, if a widget is scrolled off of the Notification Center screen and then you scroll back to it, it will then be unresponsive. If you have any buttons or tappable views, they are not enabled.

In the debugger, the viewWillDisappear and viewDidDisappear methods are called when the widget scrolls off the screen, but the viewWillAppear method is not called when the widget comes back on screen.

Steps to Reproduce:
1. Install attached sample project, add widget to Notification Center
2. Pull down NC, see widget, click on button and see that it works fine.
3. Scroll the NC so that they widget is hidden. Note that "viewWillDisappear" is output on the console.
4. Scroll the NC so that the widget is back. Note that there is no "viewWillAppear" message in the console. Note that the button in the widget no longer works.

Expected Results:
I would expect the widget to continue to be functional after scrolling off the screen and back.

Actual Results:
Widget is totally non-responsive and is not responsive until the Notification Center is closed and reopened.

Version:
iOS 9 beta 5

Comments

Is this still happening? I haven't seen it in my Today Widget since around iOS 9.1.

I'm having the same problem and have noticed that "viewWillDisappear" and "viewDidDisappear" will only be called if I scroll quickly off my widget. If I scroll slowly off the widget these methods are never called and my widget functions correctly.


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!