I have a tableview which is in a tab bar controller (basically on of the tabs is a list of charts), vertical scrolling isn't responsive..sometimes it side scrolls to another tab if user accidentally moves finger a big to the side while scrolling vertically. That part is more optimized in other apps I've seen. Is there a way to make vertical scrolling smoother? Or just to disable the side scrolling in tab bar so user has to click the tabs to switch them?
disable the side scrolling if you don't mind. it works for me. Thanks.
Related
I have a logo on a navigation bar. Beneath it, I have a searchbar with three bar buttons on its both sides.
The searchbar and bar buttons are put in a UIView which is beneath the navigationbar.
I want to implement a functionality where with a very small pinch of scroll on the tableview by user, the navigationbar should move above with animation with scroll up and should come down with animation for scroll down.
Along with this, the searchbar should occupy the position of the logo while scrolling up and should come at its original position when scrolling down.
This is the same functionality implemented in Flipkart app on the Home page.
I tried using SQTShyNavigationBar by Cocoa Controls
https://github.com/cbpowell/SQTShyNavigationBar, but that does not adjust the position of my search View.
Please help me with this.
How to make UINavigationBar height become smaller when UITableView scroll down?
And when scroll up, the UINavigationBar height back to normal,
just like what safari does.
Thanks
There are a ton of third party options to create an effect like that. I'd start by looking at this question on SO:
Imitate Facebook hide/show expanding/contracting Navigation Bar
I've seen this being achieved a few months ago in an app (wish I could remember which).
My main screen is a scrollable view (UITableView) that has the default navigation bar on top, and another added navigation bar at the bottom.
When I scroll down (swipe finger up), the bottom navbar will eventually reach the top. What I'm trying to achieve is to make the top navbar be pushed up by the bottom navbar as I'm scrolling and swap it. All in a smooth transition, which will of course work in the opposite direction (be reversible).
Can anyone give me directions on how to go about doing this?
I have thought about creating an animation, but not sure if its actually possible to push up and out of the screen the "default" navigation bar of the view controller.
Thanks.
I think what you are looking at is headers for sections in an UITableView.
See Apple's documentation on UITableView`: Documentation
Specifically, see the headerViewForSectionmethod.
All:
I am working on an app in which I have multiple UIButtons and UITextFields on the top and right hand side of a UIView. The UIViewController is embedded in a tab bar controller, and I'm using iOS 7.
When the view first appears, the UIButtons and UITextFields on the right are unresponsive -- they are enabled (according to .isEnabled), but the buttons don't flash, and the keyboard doesn't appear when I tap on the UITextField. If I switch to another tab and then back, they work.
The controls at the top work as expected.
However, if I drag the right hand side controls more towards the center of the app, they work first time. There's like a 100 pixel "dead zone" that only goes away when I switch tabs.
Update: If I bypass the tab bar controller completely, and make the view controller associated with the above the initial view controller, then the controls work as they should.
What is going on??
Thanks,
Michael
I am currently working on an app that has two or more views and I want to swipe around between them. Right now I'm using a Navigation Controller.
Unfortunately if I use push to swipe to another view the transition is always from right to left. It used to be a problem that the swipe from left to right transition was not available.
With iOS 7 the transition from left to right (back) is working out of the box but the swipe gesture only works if you have the "Top Bar" activated.
Is there a way to keep the animation for my left to right swipe without displaying the top bar with the back button?
Just figured it out my self. You can simply enable the Top Bar and check "Hidden". Now the swipe back works with the right animation and there is still no Bar.