Comments (9)
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.
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.
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.
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.
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.
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.
Ok..., thank you anyway. You must be mad at me right now. So sorry.
from mzformsheetpresentationcontroller.
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.
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)
- Set backgroundVisibilityPercentage does not reflect to dimmingView
- Xcode 9 HOT 1
- Doesn't move to top when show keyboard on iOS 11 HOT 4
- This sheet is not layout correct in iOS11, version 2.4.3, but it is correct in version 2.4.2 HOT 1
- ClipsToBounds Problem HOT 4
- Xcode 9.0.1 Warning: MZTransition.h "This block declaration is not a prototype" HOT 2
- Why should Tap for two time on cell in UITableViewCell for show MZ pop up? HOT 1
- Make Form Sheet View cover percentage of entire screen
- How to use the default push animation when navigating within modal view?
- Compiler warnings when switching Deployment Target HOT 2
- Question about a default value?
- MZFormSheetPresentationViewController subclass initializer infinite loop.
- Anyone experiences freezing in iOS 12? HOT 1
- Memory Leak issue HOT 3
- How can I present the dialog on top of ViewController? HOT 1
- iOS 12 ONLY: [_UIAlertControllerAlertPresentationController setBackgroundVisibilityPercentage:]: unrecognized selector sent to instance 0x13130b3b0 -[NSOrderedSet initWithSet:copyItems:] HOT 1
- Crash on allowDismissByPanningPresentedView
- support to Swift Package Manager HOT 5
- How do I set the position of the contentView, for example, at the bottom of the page
- Xcode 13: Building universal frameworks with common architectures is not possible
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mzformsheetpresentationcontroller.