I am developing an iPhone application using iPhone SDK 3.0. I need to use tabbar control along with navigation control. I also want to include a scrollview on the top of all views.Which contains a few number of buttons.These buttons are used to navigate to particular views. Tabbar contains 4 items. Total number views is about 8. So we can navigate to 4 of the views using tabbar as well as buttons on the top. The remaining 4 views can be accessed by using the buttons on the top only. I just created the tabbar and able to navigate to particular views using tabbar buttons as well as buttons on the top. But I couldnt able to navigate to other views, views that are not in tabbar controllers array. So please tell me how can I implement this feature?
Thanx in advance,
Syam S
iPhone Devr.
u want to navigate your remaining 4 view right? U can navigate that view using tabbar button also? when u creating an button on tabbar set the property [button setTag:Your number];
and when clicking on that button , at that check tag of sender and take a corresponding action.
let me know is this work or not?
Related
Im having a tabbarcontroller with more than 5 tabs on it. I tried MS Teams like UI. But unable to present it as a small VC presenting on top of tabbarcontroller. I tried presenting views on tabbar item click but
Unable to fire the tabbar select event on first tap on the button
Unable to present over the currently selected view controller
Unable to present on top of tabbar controller(view hiding the tabbar)
#Microsoft Teams app
Please help me out to implement the same behaviour or comment if u know any library to perform this.
You should check Aiolos project on GitHub. It will allow you to show/interact with panels and you also be able to configure offset in Panel.Configuratio.magrins. Another way is to use custom transitions
I have an application with a maybe-strange navigation scenario. I'll try to explain:
1) first scene: select an available item from a list
1.1) once selected, you navigate to a tab view allowing you to view/edit the various attributes
2) if the desired item isn't available, you may create a new one (by selecting a "+" bar button) which navigates to an alternate scene
2.1) there may be multiple scenes required to create the item, all scenes are simply pushed on the stack to allow the user to go back, select different options, etc.
2.2) once all scenes have been displayed and all attributes have been collected, the new "item" will be created and saved.
2.3) now, I want to automatically act as though the user selected this item from the beginning, that is, I want to pop all previous views off the stack and navigate directly into the tabs (step 1.1).
Does this make sense? Easy to do? Is there a better way to go about this? I'm using xCode 4.2 with storyboards.
Any guidance would be appreciated.
If you want (+) button on TabBar you should subclass UITabBar: Fo ex. TabBarPlus and set this class in storyboard.
But easier place (+) button on navigation bar.
The max number of displaying tabsart is 5 for iphone and 8 for ipad. If the there > number of tabs the last is "More" tab thet displaing list of other tubs in tableview. I you want displaying more tabs on tabbar then you should subclass UITabBar :)
If you want by back button on naigation bar switching beetwing Views that references with TabBar buttons you must create stack in code and hide backbutton of navigationbar and use castom left button of navigationbar.
The other navigation can be easy done in storyboard
I have a navigation based application. In the main screen it has 5 buttons and according to which one is pressed then we move using the navigation controller. What I want is that in the rest Views (except the main screen) to have a tabbar-like menu with 5 buttons each one doing the same as the ones in the main screen (pushing that view). Is there any library to create such a menu or I will have to create it by mySelf?
-If I do it myself and lets say I create a nib with 60px height, how do I add this nib in each nib of my other views so as to make the right design? (this is a noob question sorry, but until now I have only added generic iphone components :) ).
I have an interesting problem. I have an app that I'm developing that involves photos so screen space is at a premium. Also, using disappearing and reappearing nav / tool bar controllers (like in the camera app) doesn't make sense for me. In a perfect world, I'd use a UITabBar to switch between the 4 main navigational view controllers that my program implements, however I also am going to need space for a toolbar right on top of the tab bar most of the time. These two components take up too much space between the two of them so I need a way to save some space.
That's where I came up with the idea of using a toolbar to implement the functionality of both the TabBar and ToolBar. On the left side of the ToolBar would be the 4 buttons that allow access to my 4 main navigational view controllers. The one that is currently on the window would have it's button depressed. Then there would be a divider, and on the right side of the tool bar would be buttons specific to whatever view is currently on the window.
Anyhow, I'm just wondering if anyone has any clever ideas on how they'd implement this?
wat do u mean by left and right of toolbar??? adding a tab bar will not affect ur view size. when adding a toolbar, well yes it does affect ur view size.
my idea wolud be add a toolbar to the top of ur view and u can make it visible only when the user taps on the screen. until then keep the toolbar hidden. when the user clicks for the second time on the screen hide ur toolbar. this way u can have the whole view for ur pics and also have a toolbar for giving options.
using iphone sdk 4.1. I want to overlay a small view over all my tabcontroller views. this will present itself on the push of a button from one of the tab bar viewcontrollers but then i wish it to remain in place even if the user tabs to another view. How to do?
Thanks
Look at the Apple docs for UITabViewController - you want to add your overlay as a subview of the "view" property on your UITabViewController. This will make it appear above everything on the screen (even over the tab-bar itself, if you're not careful).
You can change the tabs as much as you want - that should just switch the value of the content underneath.