Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best way is to add the view in the UIWindow #35

Closed
fu-xianfeng opened this issue Jun 29, 2016 · 2 comments
Closed

Best way is to add the view in the UIWindow #35

fu-xianfeng opened this issue Jun 29, 2016 · 2 comments

Comments

@fu-xianfeng
Copy link

When i user it, i found your demo is to hide the statusBar at the very beginning, i think it is not good. My solution is to add the view in the main window, and make the windowLevel high than the statusbar window level: kWindow.windowLevel = UIWindowLevelStatusBar + 1; contextMenuTableView.showInView(kWindow, withEdgeInsets: UIEdgeInsetsZero, animated: true). When hide the view: kWindow.windowLevel = originalWindowLevel

@greynguyen
Copy link

@fu-xianfeng Can you elaborate more on what you did when you show the contextMenuTableView. I was able to bring the window level up, but that consequently removes the status bar from my view as well. Is there a way to keep the status bar but push the contextMenuTableView above it? Thanks!

@serejahh
Copy link
Contributor

Hi @ndduong97. As I mentioned in #36. It should be implemented via custom modal presentation style to present over status bar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants