X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c61605ef505305c14b12169436bf36a01da10951..948c6134e7cd57a0b776b9440975a73ce30d7d03:/src/osx/iphone/nonownedwnd.mm?ds=sidebyside diff --git a/src/osx/iphone/nonownedwnd.mm b/src/osx/iphone/nonownedwnd.mm index 87018de7b8..9c14e09ac3 100644 --- a/src/osx/iphone/nonownedwnd.mm +++ b/src/osx/iphone/nonownedwnd.mm @@ -335,7 +335,11 @@ wxWidgetImpl* wxWidgetImpl::CreateContentView( wxNonOwnedWindow* now ) wxUIContentView* contentview = [[wxUIContentView alloc] initWithFrame:( fullscreen ? frame : appframe ) ]; contentview.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; wxUIContentViewController* controller = [[wxUIContentViewController alloc] initWithNibName:nil bundle:nil]; + +#ifdef __IPHONE_3_0 controller.wantsFullScreenLayout = fullscreen; +#endif + controller.view = contentview; [contentview release]; [contentview setController:controller];