CB-8988: Fix rotation on iOS/iPad (closes #46)
CB-8988: Fix rotation on iOS/iPad (closes #46)

The viewController.interfaceOrientation passed to getImageName has not
yet been updated with the new orientation, even when the frame/bounds
change event has fired. Thus, the plugin never actually loads the
correct image for the new orientation. Instead, it poorly scales the
existing image.

This fix uses the statusBarOrientation property of the UIApplication
object to detect the actual orientation, and correctly load the right
image.

Signed-off-by: Shazron Abdullah <2e7a002aa6629ab76d1450ba04a3f6f9088254af@apache.org>

hebert-nr/spin,Choppel/cordova-plugin-splashscreen,bamlab/cordova-plugin-splashscreen,dpolivy/cordova-plugin-splashscreen,Choppel/cordova-plugin-splashscreen,purplecabbage/cordova-plugin-splashscreen,Lazza/cordova-plugin-splashscreen,Lazza/cordova-plugin-splashscreen,Seedstars/cordova-plugin-splashscreen,sportstech/cordova-plugin-splashscreen,purplecabbage/cordova-plugin-splashscreen,purplecabbage/cordova-plugin-splashscreen,bamlab/cordova-plugin-splashscreen,Panajev/cordova-plugin-splashscreen,sportstech/cordova-plugin-splashscreen,IWAtech/cordova-plugin-splashscreen,dpolivy/cordova-plugin-splashscreen,kitmaxdevelop/cordova-plugin-splashscreen,petermetz/cordova-plugin-splashscreen,apache/cordova-plugin-splashscreen,revolunet/cordova-plugin-splashscreen,Lazza/cordova-plugin-splashscreen,jfrumar/cordova-plugin-splashscreen,corimf/cordova-plugin-splashscreen,Newstex/cordova-plugin-splashscreen,petermetz/cordova-plugin-splashscreen,revolunet/cordova-plugin-splashscreen,revolunet/cordova-plugin-splashscreen,hebert-nr/spin,Panajev/cordova-plugin-splashscreen,petermetz/cordova-plugin-splashscreen,corimf/cordova-plugin-splashscreen,bamlab/cordova-plugin-splashscreen,revolunet/cordova-plugin-splashscreen,Newstex/cordova-plugin-splashscreen,bamlab/cordova-plugin-splashscreen,Seedstars/cordova-plugin-splashscreen,IWAtech/cordova-plugin-splashscreen,hebert-nr/spin,dpolivy/cordova-plugin-splashscreen,Newstex/cordova-plugin-splashscreen,IWAtech/cordova-plugin-splashscreen,petermetz/cordova-plugin-splashscreen,Seedstars/cordova-plugin-splashscreen,Seedstars/cordova-plugin-splashscreen,jfrumar/cordova-plugin-splashscreen,IWAtech/cordova-plugin-splashscreen,purplecabbage/cordova-plugin-splashscreen,sportstech/cordova-plugin-splashscreen,sportstech/cordova-plugin-splashscreen,jfrumar/cordova-plugin-splashscreen,kitmaxdevelop/cordova-plugin-splashscreen,jfrumar/cordova-plugin-splashscreen,Panajev/cordova-plugin-splashscreen,dpolivy/cordova-plugin-splashscreen,corimf/cordova-plugin-splashscreen,corimf/cordova-plugin-splashscreen,hebert-nr/spin,Choppel/cordova-plugin-splashscreen,Choppel/cordova-plugin-splashscreen,kitmaxdevelop/cordova-plugin-splashscreen,hebert-nr/spin,Newstex/cordova-plugin-splashscreen,kitmaxdevelop/cordova-plugin-splashscreen,Lazza/cordova-plugin-splashscreen,Panajev/cordova-plugin-splashscreen