Group Group Group Group Group Group Group Group Group

Incorrect article about UIViewController Transitions

#1

This article should use viewForKey: instead of viewControllerForKey:.view.

#2

Thanks @revolt for bringing that to the notice, however if you post a little bit of context rather than simply adding two links together, chances are your post might almost seem like spam.

cheers,

1 Like
#3

Yeah, sorry about that. The thing is that Apple recommends using the viewForKey: method instead of manually reading from the view property of the view controller returned by viewControllerForKey:.

In my case, it caused a black screen to show up at the end of the transition. Changing .view to viewForKey: fixed it.