Summary:
If the Safari View Controller is contained in a container view controller that is set as its delegate, the container view controller will deallocate before the Safari View Controller can finish sending it a safariViewControllerDidFinish: message, after swiping to dismiss. Pressing the done button works properly, but swiping causes the container view controller to deallocate before the transition can complete.
Steps to Reproduce:
Open sample project in Xcode.
Set a breakpoint on line 55 (safariViewControllerDidFinish:) of the ContainerViewController.m file.
Run application on device or simulator.
Tap the "Present Safari View Controller" button.
Dismiss the Safari View Controller by swiping from the left edge of the screen.
Expected Results:
The safariViewControllerDidFinish: should be called after the swipe to dismiss transition completes. The breakpoint should be hit.
Actual Results:
The safariViewControllerDidFinish: is not called after the swipe to dismiss transition completes. The breakpoint is not hit.
Version:
iOS 9.3.2 (13F61)
Configuration:
iPhone 6s 64 GB T-Mobile, using Wi-Fi
Description
Summary: If the Safari View Controller is contained in a container view controller that is set as its delegate, the container view controller will deallocate before the Safari View Controller can finish sending it a safariViewControllerDidFinish: message, after swiping to dismiss. Pressing the done button works properly, but swiping causes the container view controller to deallocate before the transition can complete.
Steps to Reproduce:
Expected Results: The safariViewControllerDidFinish: should be called after the swipe to dismiss transition completes. The breakpoint should be hit.
Actual Results: The safariViewControllerDidFinish: is not called after the swipe to dismiss transition completes. The breakpoint is not hit.
Version: iOS 9.3.2 (13F61)
Configuration: iPhone 6s 64 GB T-Mobile, using Wi-Fi
Sample Code: https://github.com/sqwerl/safariviewcontrollerbugs
Product Version: 9.3.2 Created: 2016-05-04T20:56:37.626010 Originated: 2016-04-25T17:49:00 Open Radar Link: http://www.openradar.me/25921607