forcedotcom/cordova-ios — pull request #9 by khawkins (2013-06-28 19:54:43+00:00)
Title: Fixing splash screen in Cordova

Cordova was creating the splash screen outside of the view hierarchy of the CDVViewController, which isn't really appropriate, and caused issues when we wanted to show other views modally on top of the CDVViewController.

I changed the implementation of the splash screen as follows:

- The splash screen is orchestrated as views in CDVViewController's view hierarchy (not the its super view's).
- I made `[CDVViewController showSplashScreen]` public, so that inheriting view controllers could call it explicitly.
- I made the splash screen view conform to the bounds of the view controller. CDVViewController should not make assumptions about its bounds within the app (i.e. it doesn't have to be full screen).
- The CDVViewController parent class will still try to load the splash screen (if `useSplashScreen` is configured), but if it has already been displayed (by an inheriting class, for example), it will not attempt to load it.