Obviously when scrolling on chrome under iOS the address bar disappears.
Have a website where the the front page have a button which scrolls to the next section, i would really like that button to behave as if the user actually scroll the page, therefore, hiding the address bar.
how can i achieve that ?
Related
I'm working an iOS movie app which has a home screen and a "Select Genres" screen.
When tapping a button on the home screen (https://i.imgur.com/hiBZM82.png), it sends the user to the Select Genres screen (https://i.imgur.com/YKFzYlO.png).
All is well and good so far.
However, if I go back to the home screen, minimize the app, open it again and once again tap the same button, the Auto Layout of the Select Genres screen gets messed up (https://i.imgur.com/tjcdXlw.png).
As you can see:
The "Back Home" button mixes with the time
The main title gets pushed up
The bottom button gets moved down to the point where it touches the safe area
It basically pushes the content on the top up (where the navigation bar would be) and also ignores the constraint of the button on the bottom and pushes it to touch the Safe Area.
By the way, I'm using both a navigation bar and a tab bar, which I hide for the Select Genres screen. It looks like this could be the source of the problem.
I set up Auto Layout constraints on the Select Genres screen, which work well as long as the app doesn't get sent to the background and then brought to the foreground.
I've tried playing around with the Simulated Metrics of Top Bar and Bottom Bar in Storyboard, but the same problem keeps happening.
Do you have any idea what could be happening here?
Thank you!
If you focus a TextField the system overlays will accompany the onscreen keyboard despite calling SystemChrome.setEnabledSystemUIOverlays([]) before and immediately after the focus change happened. Any way to change that?
For Clarity: I am referring to the onscreen bottom navigation bar that is provided by android when phones have no physical buttons. In flutter, when you tap on a textfield, the onscreen keyboard comes up, and with it this navigation bar is being forced in. I'd like to hide it, because it's sometimes unnecessary.
AFAIK, You can't hide it. This is the default system behavior (you can't change it) to show the navigation bar when on screen keyboard is visible to the user.
It is provided so that the user can press the back button from the navigation bar in order to hide the Keyboard. So, it will stay there forever as long as keyboard is visible to the user.
I have a webview in my application. When the user brings up the keyboard to type into a text field and then rotates the screen the navigation bar scrolls up the screen as well as the text field in question, obscuring the status bar. Not only that but the screen auto scrolls back to that default position when you try to scroll up in the web view.
Any help on fixing this issue?
Thanks
It's only happened on iPad,not in iPhone.
I have a search display controller in my listview, under a titlebar(not navigation bar).
It can be displayed correctly, even I don't set self.edgesForExtendedLayout=UIRectEdgeNone.
The issue is:
When I click in the text field of the searchbar, and then click someplace else to hide the keyboard and end the text input, the searchbar will be shown at the top-left corner of the screen.
p.s.My listview is in the middle of the screen.
In one of my modal view, the search bar is under a navigation bar, there is no such issue. But I must set self.edgesForExtendedLayout=UIRectEdgeNone to show the search bar.
Could you give me a hand please?
Thanks a lot.
Is there a way to make the trigger.io native topbar scroll the webview to the top on click? I can't see an obvious way to listen for clicks on the topbar other than on buttons. We have a long list and would like to make clicking on the bar scroll the page to the top much like Safari does when you click the status bar.
There is currently no way of detecting clicks on the topbar from javascript. You could however add a button to the topbar and use $(window).scrollTop() in the button clicked event.