Hi stackoverflow community,
I really need help with a problem, I found no working solution.
I have an App which uses the TabBar for navigation.
There are 8 Tabs, 4 on the main screen and 4 in the tableview of the "MORE" Button.
My Problem is that when I go to one of the pages in the "More" menu, and then change to another page by clicking on a Tab, the open page will be saved.
And when I now click again on the "More" Button, this page will be directly opened.
But I want the "More" Button to ALWAYS open the List with the possible selections.
How can I achieve this?
I'm really thankful for any help :)
PS: I implemented the TabBar via the Storyboard.
This is expected behavior. What you could do is to overwrite the –tabBar:didSelectItem: item method and manage to pop the visible view controller off the "more" item navigation stack back to its root view controller every time the more item was selected.
Be aware that this may cause confusion and frustration on the user's side, depending on the depth of the navigation stack (i.e. the deeper the user goes, the higher the frustration might be).
Also, this might be against Apple Human Interface Guidelines and therefore there is a chance that this custom behavior leads to a rejection.
Related
I have created a Tab Bar controller. It has 4 tabs. I now want to place a Button which would take place as the 5th tab. Clicking the button should perform some action (i.e. log something)
Here is a image of what i am trying to do. The last tab is supposed to be a button and not a Tab Bar View Controller. Is this possible to do?
Saw this link but not sure if its what i am looking for. link
As per apple guidelines when you add more then 5 tabs the 5th tab will auto named as More; this because of the use interaction and focus of touch. And not recommend to have more than 5 tabs when you go with custom implementation. This is because there are chance of rejections when you submit the app to App Store.
For your reference here is the same question by other user 5th tab to be a button
I don't think Apple's iOS SDK has such way to approach. I really recommend you to check out some customized design like
KYGooeyMenu
If you think that's what you want, you can integrate it into your project.
I'm started to work at new place as iOS programmer. I joined existing project and got an assignment that i don't really know how to approach.
So my problem is this: when you press a button, next window has to have a tab bar with four icons, this means four different navigation stacks. Its not that hard to make, but in main screen i have more then four icons, and if i press any one of them next window always has to have a tab bar with four static icons, like shortcuts or something.
So what should I do? Does anyone had the same situation? I want to start with a good advice to save trouble later on.
You should probably rethink the app design. Tapping an item on the tab bar shouldn't result in a different number of tab bar items, as it leads to an unstable and unpredictable UI.
While not the most efficient in terms of visible content, you could introduce a segmented control (or a similar custom view) on top right under the navigation bar (if there is one), as seen in the Facebook app (though here it is used to perform actions, not changing views).
Your root view controller should be embedded in a navigation controller. Then push a view controller which contains any number of tab bar items not TabBarController. Then you can present each view controller either push or custom.
I'm new to iOS developing, I wanted to ask could someone help me how to make a page control(screen sliding) with navigation bar, I have tried a lot of things, I googled a lot but I couldn't find a solution.
I have a button when I click it will open a pagecontrol(rootview for screen sliding) with tableview which will change its data according to pages.
the problem is when I click that button I don't know how to get back to main page.
Can anyone help me?
This is a good tutorial for learning how to create a page controller.
As far as your other problem of getting back to the main page, if you add a bar button item to the root view controller's navigation bar, control-drag to your second view in your storyboard from that bar button item, a "Back" button will automatically appear in the upper left-hand corner of your second view controller.
Hope it helps!
In my app I use UINavigationController to navigate through hierarchy of views but I encountered a problem - I need to display a list of buttons (when pushed they go to a view controller) instead of the back button.
What is that functionality called? I know how to change the button title and functionality but don't know how to create this list (a good example of my question is the Facebook left bar which shows Friends and other stuff).
In general you're looking for a drawer. That's what it is usually called. There are many libraries/frameworks out there that implement it in a different way so there is no general approach how to "change back button to...".
Check for yourself:
ViewDeck
DDMenuController
PKRevealController
MMDrawerController
Though, here you will find a very good article about very unique way how to implement this "hamburger" icon feature. They provide nice research and you'll find some very interesting information there.
It seems that you need control like MMDrawerController for showing side menu.
Try to make modal segue or hide back button programmatically. Then you add your own button and configure it. Default back button only return you to previous view, you need to make your own.
The title won't clear the actual problem. Let me explain clearly.
I have a tabbarcontoller in the viewcontroller which is the main view controller of the single view application project.
I added Navigationcontrollers to the tabbarcontroller. So that I can navigate(push/pop) from one viewcontroller to other.
I added a subview to the mainview of a single navigation controller.
When I click the button near to the tabbar, it doesn't get clicked and the tabbaritem button gets access and shows that tab.
The below image will explain well,
If I click the show button, it opens the receipts tab.
How to reduce the click access boundary of the tabbar in tabbarcontroller?
I can't get any solution regarding this.
Frankly, i've written a bunch of applications which have controls near the tab bar and i've never encountered such behaviour.
Check if you have custom tabbar controller with custom frame.
Also try to use Reveal App (http://revealapp.com/) to check the buttons' frame at runtime, it will help you to understand what's going on. They have trial version as i remember.
Hope it will help :)
Choose the custom button for this and add in tabbar.