Moves viewControllerForKey to use viewForKey with transitions where appropriate as discussed in this Stack Overflow post: https://stackoverflow.com/questions/24338700/from-view-controller-disappears-using-uiviewcontrollercontexttransitioning/25193675#25193675 This mainly resolves an issue when using animations with `dismissModal` that results in all views being removed and a black screen appearing as discussed in #6195 The remaining `viewControllerForKey` calls should probably be removed too where their `view` property is being used, but this seems to resolve the bug for now at least!
|
|
||
| 13 |
|
13 |
|
| 14 |
|
14 |
|
| 15 |
|
15 |
|
| 16 |
|
|
|
| 17 |
|
|
|
|
16 |
|
|
|
17 |
|
|
| 18 |
|
18 |
|
| 19 |
|
|
|
| 20 |
|
|
|
| 21 |
|
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
| 22 |
|
22 |
|
| 23 |
|
23 |
|
| 24 |
|
24 |
|
|
|
||
| 15 |
|
15 |
|
| 16 |
|
16 |
|
| 17 |
|
17 |
|
| 18 |
|
|
|
| 19 |
|
|
|
| 20 |
|
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
| 21 |
|
21 |
|
| 22 |
|
22 |
|
| 23 |
|
23 |
|
|
|
||
| 22 |
|
22 |
|
| 23 |
|
23 |
|
| 24 |
|
24 |
|
| 25 |
|
|
|
| 26 |
|
|
|
|
25 |
|
|
|
26 |
|
|
| 27 |
|
27 |
|
| 28 |
|
28 |
|
| 29 |
|
29 |
|
|
|
||
| 31 |
|
31 |
|
| 32 |
|
32 |
|
| 33 |
|
33 |
|
| 34 |
|
|
|
| 35 |
|
|
|
| 36 |
|
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
| 37 |
|
37 |
|
| 38 |
|
|
|
| 39 |
|
|
|
|
38 |
|
|
|
39 |
|
|
| 40 |
|
40 |
|
| 41 |
|
41 |
|
| 42 |
|
42 |
|
|
|
||
| 13 |
|
13 |
|
| 14 |
|
14 |
|
| 15 |
|
15 |
|
| 16 |
|
|
|
| 17 |
|
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
| 18 |
|
19 |
|
| 19 |
|
|
|
| 20 |
|
|
|
|
20 |
|
|
|
21 |
|
|
| 21 |
|
22 |
|
| 22 |
|
23 |
|
| 23 |
|
24 |
|
|
|
||
| 26 |
|
26 |
|
| 27 |
|
27 |
|
| 28 |
|
28 |
|
| 29 |
|
|
|
| 30 |
|
|
|
| 31 |
|
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
| 32 |
|
32 |
|
| 33 |
|
33 |
|
| 34 |
|
34 |
|