Resolves #33 reverted to use delayed vc dismissal

This commit is contained in:
Grant Benvenuti 2014-12-02 06:47:24 +10:00
parent 0ba523375a
commit e62c2304c3
3 changed files with 11 additions and 3 deletions

View File

@ -90,6 +90,10 @@ Wraps the com.blackberry.app plugin functions, auto installed as a dependancy.
#Changelog
##1.3.2
* [#33](https://github.com/yoik/cordova-yoik-screenorientation/issues/33) iOS8 Delay Block
##1.3.0
* [#23](https://github.com/yoik/cordova-yoik-screenorientation/issues/23) iOS8 flicker

View File

@ -2,7 +2,7 @@
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="net.yoik.cordova.plugins.screenorientation"
version="1.3.1">
version="1.3.2">
<name>Screen Orientation</name>
<description>Adds Screen Orientation API lock and unlock functions to the global screen object in android, iOS and BB10.</description>

View File

@ -77,8 +77,12 @@ SOFTWARE.
vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
#endif
[self.viewController presentViewController:vc animated:NO completion:nil];
[self.viewController presentViewController:vc animated:NO completion:^{
// added to support iOS8 beta 5, @see issue #19
dispatch_after(0, dispatch_get_main_queue(), ^{
[self.viewController dismissViewControllerAnimated:NO completion:nil];
});
}];
}
@end