mirror of
https://github.com/apache/cordova-plugin-screen-orientation.git
synced 2025-05-04 17:32:12 +08:00
Merge pull request #34 from gbenvenuti/iosDelayBlock
Resolves #33 reverted to use delayed vc dismissal
This commit is contained in:
commit
080aa28f94
@ -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
|
||||
|
@ -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>
|
||||
|
@ -77,8 +77,12 @@ SOFTWARE.
|
||||
vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
|
||||
#endif
|
||||
|
||||
[self.viewController presentViewController:vc animated:NO completion:nil];
|
||||
[self.viewController dismissViewControllerAnimated: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
|
||||
|
Loading…
x
Reference in New Issue
Block a user