Giter Club home page Giter Club logo

Comments (9)

 avatar commented on May 21, 2024

I know one of the solutions is to create a new UIWindow and set its windowLevel to UIWindowLevelStatusBar, but I think it should be done in MZFormSheetPresentationController.

from mzformsheetpresentationcontroller.

m1entus avatar m1entus commented on May 21, 2024

Lol... Of course not, you need to just override preferredStatusBarStyle in your contentViewController and make sure that call setNeedsStatusBarAppearanceUpdate, and just set modalPresentationCapturesStatusBarAppearance = YES; to MZFormSheetPresentationController, and read this: http://stackoverflow.com/questions/23615647/uiviewcontrollers-prefersstatusbarhidden-not-working

from mzformsheetpresentationcontroller.

 avatar commented on May 21, 2024

I have tried your suggestion and realized you have misunderstood my question. I didn't mean changing preferredStatusBarStyle by saying dim. I want the status bar to be covered by a transparent black view just like the background view instead of above the view. Do you get my point?

from mzformsheetpresentationcontroller.

m1entus avatar m1entus commented on May 21, 2024

On Apple Guidlines status bar is always on the top, MZFormSheetPresentationController is using presentation controllers which is recommended by apple and not using UIWindow presentation as MZFormSheetController and it won't in future.

from mzformsheetpresentationcontroller.

 avatar commented on May 21, 2024

untitled
untitled 2
The effect I want is the second one. I am sorry if I didn't express clearly before. I think it is possible because in your demo it is the second effect.

from mzformsheetpresentationcontroller.

m1entus avatar m1entus commented on May 21, 2024

In my demo is the first one, and as i said i am using native way for presenting view controllers, apple is doing in this way so do i.

from mzformsheetpresentationcontroller.

 avatar commented on May 21, 2024

Ok..., thank you anyway. You must be mad at me right now. So sorry.

from mzformsheetpresentationcontroller.

eliburke avatar eliburke commented on May 21, 2024

I don't think he's mad. I think he's trying to tell you that what you want can't be done using automatic behavior with MZFormSheetPresentationController. It could be done in the older version using MZFormSheetController, which used UIWindow presentation.

Perhaps you can accomplish what you want by tinting the status bar in the completion blocks for showing and dismissing your modal view?

from mzformsheetpresentationcontroller.

m1entus avatar m1entus commented on May 21, 2024

Yep, i am not mad, just wanted to tell you that this is not how Apple designed their presenters, and even popover controller have status bar always on top. Good catch @eliburke , you can always make screenshot of status bar window, and then add it below dimming view in form sheet presentation controller, and hide status bar. You will get this effect.

from mzformsheetpresentationcontroller.

Related Issues (20)

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.