Coder Social home page Coder Social logo

fullscreentest's Introduction

FullScreenTest

A simple sample project for extended height status bars

This project contains a very simple, full height application.

My question is: What is the best practice to handle an extended height status bar, i.e. with the extra status bar presented when a phone call or a VoIP app is present, or when the personal hotspot feature is activated?

Is the UIApplicationWillChangeStatusBarOrientationNotification notification (or the corresponding delegate method of UIApplication the right way to do it, or am I overlooking something obvious?

To try

The easiest way is just to enable the personal hotspot, or to start an app which records audio in the background.

Then start this app on a phone. In the simulator, you can start the app, and simulate an incoming phone call.

You will see that the text is hidden. In non-fullscreen apps, this is handled automatically by the system, by resizing the view controllers view frame. This does not seem to be the case if wantsFullScreenLayout is set to YES

fullscreentest's People

Contributors

below avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

fullscreentest's Issues

Maybe just this?

    UIViewController *vc = [[UIViewController alloc] init];
    vc.view.autoresizesSubviews = YES; //<-- new line
    vc.wantsFullScreenLayout = YES;
    UILabel * fooView = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 320, 60)];
    fooView.text = @"This text should be legible";
    fooView.textColor = [UIColor blackColor];
    fooView.backgroundColor = [UIColor lightGrayColor];
    fooView.autoresizingMask =  UIViewAutoresizingFlexibleTopMargin; //<-- new line (doesn't hurt...)
    [vc.view addSubview:fooView];

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.