[Interest] Full Screen on iPhone 11/iOS 13 [solved]

Jason H jhihn at gmx.com
Tue Nov 19 20:05:45 CET 2019


It's stupid simple now: (in QML) visibility: Window.FullScreen
I don't even need my old iOS 10 hacks! *so happy*

> Sent: Tuesday, November 19, 2019 at 12:06 PM
> From: "Jason H" <jhihn at gmx.com>
> To: "interestqt-project.org" <interest at qt-project.org>
> Subject: [Interest] Full Screen on iPhone 11/iOS 13
>
> Yet again I find that apple changed how to get full screen. I had it working for iOS 10, but 13 is different.
>
> Does anyone know what I need to do to get my app full-screen again? Specifically w.r.t. what it takes for a Qt app. I've tried a variety of additions:
>
> @interface QIOSViewController : UIViewController
> @end
> @interface QIOSViewController (CustomEdges)
> - (UIRectEdge)preferredScreenEdgesDeferringSystemGestures;
> - (UIRectEdge) edgesForExtendedLayout;
> - (void)viewDidLoad;
> @end
> @implementation QIOSViewController (CustomEdges)
> - (UIRectEdge)preferredScreenEdgesDeferringSystemGestures {
> 	return UIRectEdgeAll;
> }
> - (UIRectEdge) edgesForExtendedLayout
> {
> 	return UIRectEdgeAll;
> }
>
> - (void)viewDidLoad {
> 	[super viewDidLoad];
> ...
> 	[self setWantsFullScreenLayout:YES];
> 	[self setModalPresentationStyle: UIModalPresentationFullScreen];
> 	[self setNeedsStatusBarAppearanceUpdate];
> ...
> }
>
> But to no avail.
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>


More information about the Interest mailing list