mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-02-26 12:52:50 +08:00
Added weakSelf reference for block use
This commit is contained in:
parent
86b9edba5d
commit
cf1092fe81
@ -92,11 +92,10 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
|
||||
|
||||
-(void)statusBarDidChangeFrame:(NSNotification*)notification
|
||||
{
|
||||
//add a small delay for iOS 7
|
||||
//add a small delay for iOS 7 ( 0.1 seconds )
|
||||
_weak CDVStatusBar* weakSelf = self;
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
|
||||
|
||||
[self resizeWebView];
|
||||
|
||||
[weakSelf resizeWebView];
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user