+
+ if ( now->GetWindowStyle() == wxDEFAULT_FRAME_STYLE && [[UIApplication sharedApplication] statusBarStyle] == UIStatusBarStyleBlackTranslucent)
+ {
+ CGRect appframe = [[UIScreen mainScreen] applicationFrame];
+ if ( CGRectEqualToRect(appframe, frame) )
+ {
+ if ( appframe.origin.y != 0 )
+ {
+ double offset = appframe.origin.y;
+ frame.origin.y -= offset;
+ frame.size.height += offset;
+ }
+ else
+ {
+ double offset = appframe.origin.x;
+ frame.origin.x -= offset;
+ frame.size.width += offset;
+ }
+
+ [self.view setFrame:frame];
+ }
+ }