Ionic1 bottom navigation over modal - ionic-framework

I have bottom navigation visible on all screens, when I change screens using ui-router, my bottom navigation bar stays visible but when I push a $ionicModal, it overrides my bottom navigation bar. Is there any css tricks for this ?

You need to override the ionic's modal css.
add a class to modal div:
<div class="modal bottom-navigation">
Modal Content here
</div>
and add the following css to that
div.modal.bottom-navigation{
height: calc(100vh - 50px);
min-height: unset;
}
Check this codepen for working example:

Related

How to show bottom Navigation bar in all pages in flutter

I am new in Flutter. There are three pages in my App. And i have a bottom Navigation Bar with Two Pages. Now how can i show bottom Navigation in 3rd page that is not my bottom navigation bar.

Hide navBar of a webview within a view swift

I wanna hide a navbar that my webview has. The webview is within a view and it's inside a view controller.
The problem is that I don't want to show the navigation bar of the webview. I have to choices:
1) hide the navbar of the webview behind the navbar of the viewcontroller
2) Hide the navbar using javascript.
Any idea of how can I do that?
You can use
self.navigationController?.navigationBarHidden = false // or true

Return to main view from navigation view and modal view

I have views created in the way
main view -> modal view (navigation controller) -> navigation view root -> navigation view A
The modal view presentation style is default (coming up from the bottom), when modal view is dismissed (cancel action), it goes back to the bottom.
When navigation view A is pushed, it slides from right hand side as usual. When I dismiss the modal view from navigation view A, it also goes back to the bottom.
My question is, how can I dismiss modal view from navigation view A by sliding back to right?
The behave I am trying to achieve can be found on Microsoft bing app. When entering the setting page, it's presented as modal view. But for next levels in details (bookmarks, history ..), they are shown by navigation. Whenever done button in detail is pressed, the view slides (instead of going to bottom) and return to the home page.
In the docs there are these possible styles available:
typedef enum {
UIModalTransitionStyleCoverVertical = 0,
UIModalTransitionStyleFlipHorizontal,
UIModalTransitionStyleCrossDissolve,
UIModalTransitionStylePartialCurl,
} UIModalTransitionStyle;
I think if these styles doesn't match your needs you have to create your animation yourself. Maybe this correct link can help.
I found the effect I am looking for can be achieved by using CATransition. The link has more details, http://www.iphonedevsdk.com/forum/iphone-sdk-development/13427-uiview-slide-transition.html

Partial Curl Modal Transition Style While Preserving Tool/Tab Bar

Is there a way to present a modal view controller that doesn't cover the tab bar of a UITabBarController?
Specifically I want to use the UIModalTransitionStylePartialCurl, but preserve the bottom bar, a la the iPhone maps app.
Have two view controllers
In the first have the second as a subview
Add your toolbar as a subview to the first and call bringSubviewToFront:
Present the modal in the second
UIModalTransitionStylePartialCurl
When the view controller is presented,
one corner of the current view curls
up to reveal the modal view
underneath. On dismissal, the curled
up page unfurls itself back on top of
the modal view. A modal view presented
using this transition is itself
prevented from presenting any
additional modal views.
And
hidesBottomBarWhenPushed A
Boolean value indicating whether the
bar at the bottom of the screen is
hidden when the view controller is
pushed on to a navigation controller.
#property(nonatomic) BOOL
hidesBottomBarWhenPushed
Discussion
If
YES, the bar at the bottom of the
screen is hidden; otherwise, NO. If
YES, the bottom bar remains hidden
until the view controller is popped
from the stack.
There are discussions around this topic on stackoverflow in the past

UIPopoverController - display without title bar?

Hoping there is a way to do this. Would like to just display the border around the view, with no 40px title bar at the top. Possible?
Answered... I was initializing it with a Navigation Controller. Once I removed that I didn't get the title bar.