UIWindow view hierarchy disappears when dismissing view controller with custom presentation
Originator: | ash.furrow | ||
Number: | rdar://17567668 | Date Originated: | July 5, 2014 |
Status: | Open | Resolved: | |
Product: | Developer Toos | Product Version: | iOS 8 Beta 2 |
Classification: | Other Bug | Reproducible: | Always |
The app's keyWindow loses its entire view hierarchy once the presented view controller is dismissed, when using the custom view controller transitions API. Sample Code: http://cloud.ashfurrow.com/1Q2k0Y28242M
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!
I was facing the same issue and there's no need for a workaround. This comment explains what's happening https://stackoverflow.com/a/25901154/3641812 I got it working.
How to use the Workaround
@permakittens where should we use that line? When the transition is cancelled? In the AppDelegate?
Does this have any updates?
I am also facing the same problem in GM.
Facing the same problem, also still seems to be present in the GM
Confirming here it is still in GM.
Facing same problem
I am facing same problem. Any update on resolution or work around for this issue ?
Workaround
I've been meaning to check to see if this was resolved in Beta-7 but don't have that version on this laptop and have slow wifi atm. @kaustubh workaround I've found while Googling answer is to add the subview back to the window:
UIApplication.sharedApplication().keyWindow!.addSubview(toView)
Note that if you're doing an interactive transition, and the transition was cancelled it would be fromView that you add.
Spoke too soon
Still seems to be a problem in Beta-7 in some situations :(