Added weakSelf reference for block use

This commit is contained in:
Jesse MacFadyen 2015-11-11 13:45:13 -08:00
parent 86b9edba5d
commit cf1092fe81

View File

@ -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];
});
}