2 Tab Bar Controllers?

I have an application that performs calculations in metric. It has a TabBar that controls the home view plus 3 other views.
How do I add a button (go to Imperial) on the Home View to change to a new view that has another Tab Bar that controls Imperial views.

That's a nice clean looking suite of apps, Steve! It looks like you have a nice business plan, and you know what you're doing.
I might need to sleep on the concept a day or two before recommending the best structure for DIY Concrete. The first obvious question is whether the same contractor would be dealing with both measurement systems. I.e. does the versatility add value to the app, or would it be better to just have two apps? Just curious... as I'm sure you knew the answer to that question going in.
At first glance, supporting the two measurement systems very closely resembles a straightforward localization job. You certainly don't need a different tab bar controller. It looks like the screen layouts don't need to change in any way, so it's just a question of changing the text of labels and other controls plus minor changes to the computation. In fact doesn't GST Mate already do exactly that?
Anyway if I'm correct in making the localization analogy, I'd tend to implement the switching in the same way as changing locality. I'd switch to a different string resource, and either switch nibs as well, or keep the same controllers. I'm fairly sure it would be easier and cleaner to just switch nibs. If the seg switch is only available from the home screen, it looks like changing the word Metric is about the only transition that needs to be visible to the user (maybe a change in background color too?). That means you can swap out the other three controllers without any attention to those transitions, right?
If you coded GST Mate I'd be surprised if you need any help adding Imperial to your concrete app, but if I come up with any better or more precise ideas I'll let you know.
\- Ray

Similar Messages

  • More than 5 tabs in tab bar controller

    Hi,
    I'm totally at a lost trying to get 6 tabs connected to my tab bar controller, which was created using the tab bar controller template.  Everything thing works fine with 5 view controllers.  When I add a 6th view controller I get the "More" tab in the 5th position, which when touched opens up a table view showing 2 more tabs for the user to choose from.  Touching either row in this table view causes the app to crash.  The error reads:
    2011-06-26 20:37:25.276 TMO[2761:207] will dissapear
    2011-06-26 20:37:27.157 TMO[2761:207] -[UIMoreListController __touchesEnded:withEvent:]: unrecognized selector sent to instance 0x4c3c010
    2011-06-26 20:37:27.159 TMO[2761:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIMoreListController __touchesEnded:withEvent:]: unrecognized selector sent to instance 0x4c3c010'
    *** Call stack at first throw:
        0   CoreFoundation                      0x014285a9 __exceptionPreprocess + 185
        1   libobjc.A.dylib                     0x0157c313 objc_exception_throw + 44
        2   CoreFoundation                      0x0142a0bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
        3   CoreFoundation                      0x01399966 ___forwarding___ + 966
        4   CoreFoundation                      0x01399522 _CF_forwarding_prep_0 + 50
        5   UIKit                               0x003aa0f4 forwardMethod2 + 92
        6   UIKit                               0x003aa0f4 forwardMethod2 + 92
        7   UIKit                               0x003aa0f4 forwardMethod2 + 92
        8   TMO                                 0x00006df6 -[UIView(__TapHook) __touchesEnded:withEvent:] + 51
        9   UIKit                               0x0056f4de _UIGestureRecognizerSortAndSendDelayedTouches + 3609
        10  UIKit                               0x0056fc53 _UIGestureRecognizerUpdateObserver + 927
        11  CoreFoundation                      0x0140989b __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 27
        12  CoreFoundation                      0x0139e6e7 __CFRunLoopDoObservers + 295
        13  CoreFoundation                      0x013671d7 __CFRunLoopRun + 1575
        14  CoreFoundation                      0x01366840 CFRunLoopRunSpecific + 208
        15  CoreFoundation                      0x01366761 CFRunLoopRunInMode + 97
        16  GraphicsServices                    0x019971c4 GSEventRunModal + 217
        17  GraphicsServices                    0x01997289 GSEventRun + 115
        18  UIKit                               0x002eac93 UIApplicationMain + 1160
        19  TMO                                 0x000024fc main + 102
        20  TMO                                 0x0000248d start + 53
    terminate called after throwing an instance of 'NSException'
    Any help or direction will not go unappreciated I've scoured the web and this forum for an answer I can understand.  I did get bits of code and explanations regarding using:
        UIViewController *moreViewController = tabBarController.moreNavigationController.topViewController;
        UITableView *moreTableView = (UITableView*)moreViewController.view;
    But, it's wasn't enough me to understand how to piece it all together.
    Thanks,
    Amy

    Open Xcode, then click on 'Window', click on 'Organizer'.
    Then click on the Documentation icon.
    Seach for 'viewcontroller'.
    Read and study the documentation for the various flavors of viewcontrollers.
    Then try applying some of your newfound knowledge your code and see what happens.
    I've found that trying a few ideas based on what I've read about is the best way to learn.  Be prepared to make lots and lots of mistakes;  You'll learn something from each one.
    Above all, be patient.  This technology can't be learned in a day or a week or even a month.  It may take months before you have that 'aha!' moment.  Once you do, it will start making sense.

  • RSS Table View with Tab Bar Code Error

    I created an iphone app with a navigation controller that has a table view which displays an rss feed. My client wants it able to display multiple rss feeds through a tab bar. I have attempted several times and have messed up. If anyone could help me with this it would be greatly appreciated.

    Hi Guy, and welcome to the Dev Forum!
    I would recommend starting as follows:
    1) Start a new project with the Tab Bar Application template;
    2) Open MainWindow.xib and select Window->Document from the IB menu to make sure the xib window (the icon winow) is visible;
    3) Locate the "View Mode" switch in the upper-left corner of the xib window and make sure it's in the Center position to display a 2-column table showing the view hierarchy as a tree of small icons to the left;
    4) Expand the Tab Bar Controller branch, then delete (select and Edit->Delete) each of the two view controllers under the Tab Bar Controller. The only child of that controller should now be the Tab Bar;
    5) Open the Library window (Tools->Library), drag a Navigation Controller into the xib window and drop it when it's on top of the Tab Bar Controller icon;
    6) Repeat step 5 until you have as many nav controllers (one for each RSS feed) as you want (for this example, assume 4 RSS feeds);
    7) The Tab Bar Controller should now have 5 children: the Tab Bar plus the 4 nav controllers; if not, drag the nav controllers until each of their icons is shown indented under the Tab Bar Controller just as the Tab Bar is;
    8) Expand the first Navigation Controller branch, and expand it's Root View Controller; you should now see that root controller's Navigation Item;
    9) Select the nav item, open the Attributes Inspector (Cmd-1), and change the Title to "RSS 1 Root";
    10) Repeat 8-9 for the remaining 3 nav controller branches, so the root views will be labeled "RSS 2 Root", ... "RSS 4 Root" respectively;
    11) Save the xib, return to Xcode, and click "Build and Go". The project should build and run without any warnings or errors. If not, return to step 1 and try to see where things went wrong.
    Let us know if you need more help after you get the above skeleton app working. The next step will be to change the class of the "RSS 1 Root" controller to the class of the first table controller in your original project, and to add that controller's xib (you can delete FirstViewController.h/.m and SecondView.xib by selecting each in the Groups & Files tree of the Xcode project window and selecting Edit->Delete).
    Please avoid the temptation to merge the above steps into your original project. In my experience, moving each of your files into the new skeleton, and testing at each buildable stage will reduce the chances for error while making it easier to spot any incompatibilities in your old code. The process shouldn't involve touching any of your XML parse or table display code, but you may need to override some additional table view controller methods such as viewWillAppear:
    Btw, in case this hasn't been discussed yet, be aware you'll face a major decision soon: When tabbing to feed no. 2, what happens on the return to feed no. 1? If the user will return to the same detail view that was last displayed, you might need lots more memory and there will be lots more to go wrong. If the user will return to the home menu, the whole project will be much simpler. Estimate your effort accordingly.
    Also be prepared for your client to say something like this during beta: "Oh... one or two of the links in feed no. 3 might be a mp3 or mp4 next month. That won't be a problem, will it?".
    Hope that helps!
    \- Ray

  • Tab bar based app, with 4 tabs each linking to a different navigation menu

    Hi,
    Im new to coding and I was wondering if anyone could help me out with a problem im having. Im trying ot get 4 tabs accross the bottom in a tabbar with each one linking to a navigation page. Im trying to get 5 topics on each navigation page which go into more detail to another page when clicked. so 4 tabs x 5 topics x 5 more detailed topics. I have tried the O'Rilley tutorial and could make a tabbar with 2 tabs. but I cant do 4, can anyone help?
    Thank you all in advance.

    Hi Sunny, and welcome to the Dev Forum!
    If you're using [Elisabeth Robson's tutorial|http://broadcast.oreilly.com/2009/06/tab-bars-and-navigation-bars-t.ht ml], it looks like a nice job (for a different tutorial, please let us know if we can find it online). I generally start with the Tab Bar Application template, since it does almost all the work of setting up the skeleton. But you'll certainly learn more starting with the minimal, Window-based App template, which is the purpose of a tutorial.
    The easiest way to add a new tab is to find the required controller type in the Library and drag it into the tab bar. I think you want a UINavigationController there, so choose that one from the Controllers section of the Library. You can drag the nav controller icon into either window (i.e. the Tab Bar Controller editor window or the xib window). When dragging into the xib window, you can choose the new controller's position by where you drop it in the small icon tree. (Btw, I might have missed this in the tutorial, but make sure the xib window is displaying two columns with a small icon tree to the left. This is done by setting the View Mode switch to the center position). You can also add tabs by opening the Attributes Inspector when the tab bar controller is selected and clicking "+" under the View Controllers table.
    Once you have your additional nav controllers added, build onto each one the same way you did with tab 2. If that's the only place you were stuck, you should be on your way in a few minutes.
    \- Ray

  • IPhone Dev: Tab Bar Controller with nested Navigation Controller

    I want to have a tab bar with 2 views. The first view is a navigational one. I know the view can be loaded in from an external nib and I can set the first view to a navigation controller.
    My question is: can this navigation controller in the external nib instead? Ideally I want to separate it out so the tab bar loads in the external nib (that has the navigation controller). Is this possible? or the only approach is to simply have to set the view controller to a navigation controller?

    Hey, this writing an app that uses the Tab View Controller in conjunction with Navigation View Controllers is driving me bats. I took a sample program which worked well, added a nib file for a basic view that only had a label on it then:
    * I created a view controller class to work with it.
    * I added code to add create a navigation controller.
    * Added my new view controller to the navigation controller
    * added this nav controller to the array with the other stuff for the tab view controller.
    * RUN
    Everything seems to work as far as all the existing stuff. And the title for my new "tab" shows up on the More tab.
    But when I click on it (in the simulator) the program crashes. It could be how I set up the nib file I made is wrong.
    I posted the code on my web site. Here is the URL:
    http://chomer.com/iphonesample_code/05a_-_Brightness_ToolbarSwatches.zip
    Please have a look. Its probably something small and stupid that I missed.
    Regards,
    Orville

  • Xcode4 Where is the Tab Bar Controller

    Hello,
    I am learning Xcode4 now and I am trying to build a Tab bar & Nav bar combined app. There is a great video tutorial about how to do it in Xcode 3.~, but when I try to do the same in Xcode4, I get stuck because I do not find the "Tab Bar Controller" allowing me to change the type of view controllers. Opening the same project in Xcode3 is working like a charm.
    Does anyone has the same problem? Sorry, this might be a pretty dumb question, as I'm a newbe!!
    The Xcode 3.xx tutorial
    http://www.youtube.com/watch?v=LBnPfAtswgw
    The Tab Bar Controller in Xcode3
    http://eremiya.net/share/xcode4-tabbarcontroller.png

    I think I have found a solution.
    Instead of going about as you would in Xcode 3 and in the video, you follow these steps:
    Select the view controller that you wish to change to a navigation controller - This can be done by either selecting the view controller under the 'objects' section of the expanded dock on the left hand side, or selecting the tab bar button that relates to the view controller
    In the Identity Inspector, change the 'Class' drop down menu (under the 'Custom Class' header) to 'UINavigationController'
    That should work
    null

  • How do I restore the "close tab" button to the END of the tab bar, WITHOUT USING AN ADDON

    Up until FF31, I used to have the following setting configured which moved the little 'X' button that closed tabs off of the tabs themselvs and onto the far right of the tab bar.
    browser.tabs.closeButtons; User Set; Integer; 3
    No, this no longer works. It has still moved the close buttons back to the tab buttons. Until I can figure out how to fix this, I will be moving back to a previous version. I can't for the life of me see why this feature was removed, other than Mozilla's seemingly arrogant insistence that it knows what people want better than they do.
    I was since told by someone that I can use an addon to fix it, yet the problem is THEY DO NOT WORK. The addons that supposedly solve this all have intermittent failures where they don't load correctly, leave random dead tabs open, and in one case it even seemed to open new tabs when I tried to close one.
    It's absolutely inexcusable that the dev team is so arrogant to take away a feature that has fundamentally no impact on the rest of the browser, other than, as I said before, they THINK they know what we want better than we do. It's no small wonder that FF is losing market share. The only thing keeping me on board was really this function, as I prefer this layout, and if it's gone, I see no reason to stick with FF over others.

    unfortunately it is not possible to restore the close button to have only one (customizable) close button on the Tab bar without using an extension.
    The extension is necessary because you need to create a new toolbar button and bind the proper code to it to make the button act as a tab close button (command: BrowserCloseTabOrWindow()).
    *tabs closebutton restored: https://addons.mozilla.org/firefox/addon/tabs-closebutton-restored/
    * http://cat-in-136.blogspot.co.uk/2014/05/note-do-same-without.html

  • Why is it that when I set the preference to always show the tab bar, it refuses to stay checked after I quit Firefox and restart it?

    Using Mac OSX10.6.7 and FF 4.0.1, I'm having a problem with the preference to always show the tab bar. I want it to always show. I check this in the Preferences under the "tab" window, and everything is fine until I quit FF and when I restart FF the tab bar is gone again. I go into preferences, and that option is now unchecked. How can I fix this so that my preference is saved?

    That hasn't helped the last ten times I tried. I posted before. I deleted the preferences file, I tried changing the preferences file, I went into about:config and changed the autoHide preference there. No dice. Firefox is not saving my preference for that one thing.

  • Can't open new tabs with double left click on tab bar in FF29.0.1?

    I've always enjoyed how tabs work in FF, mainly with them being on the bottom (which I had to find a work-around for by making the userChrome.css file - the "about:config" modification no longer works) and also being able to double left click on the tab bar to create new tabs.
    With the most recent update, double left clicking on the tab bar no longer has a function, and to create new tabs, I must now middle click. It's not a big deal really, but is there a way to change this back?
    I searched through some options on the "about:config" page, searched "tab" and found an option there: "browser.tabs.opentabfor.middleclick" that seemed promising. I changed the value to "False" but it didn't change anything - in fact, middle clicking still creates new tabs.
    I tried adding a modified function with "leftclick" in it, just to see if it might do anything but, nothing.
    Any other suggestions for restoring the double left click function to create new tabs? Thanks!

    ''Hydrilus wrote:''
    browser.tabs.opentabfor.middleclick
    If set to false, middle-clicking <u>links on web pages</u> opens them in a new window. It probably also affects bookmarks, history entries, and items in the address bar drop-down menu.
    ''Hydrilus wrote:''
    Any other suggestions for restoring the double left click function to create new tabs?
    You need an add-on. Here are two I know about:
    * [https://addons.mozilla.org/firefox/addon/classicthemerestorer/ Classic Theme Restorer]. In the add-on's option window, click the Special tab and check "Tabs toolbar: double click opens a new tab"
    * [https://addons.mozilla.org/firefox/addon/tab-mix-plus/ Tab Mix Plus]. In the add-on's option window, click the Mouse icon, then the Mouse Clicking tab, then the Double-click tab below that. [http://tmp.garyr.net/support/viewpage.php?t=3&p=mouse-clicking The Tab Mix Plus help page] has more details.

  • How can i change the tab bar from opening a new tab when single clicked to open one only when double clicked?

    Out of habbit, i double click the tab bar and it opens 1 tab. however in the new beta, it opens 2.
    Is there anyway to change this so single clicks dont open new tabs on the tab bar?

    I don't have multiple tab bars and haven't installed anything to try and get them.
    I re-read what I wrote earlier and realised it's not worded clearly when I said: If I have more than a single tab bar of tabs open
    I meant: When I have so many tabs open that they won't all fit into the tab bar at once

  • How to disable "Double Click on Tab Bar to Open New Tab" feature?

    Since I upgraded to FF3 I've noticed this very annoying feature with tabs. If you double-click the 2-3 pixel wide bar just beneath tabs, it opens a new empty tab and sets the focus to that new tab (Which means I then have to go close that tab before going back to the tab I originally wanted). I happen to do this a lot by mistake (I go to click on a tab, but haven't clicked high enough, and of course, it doesn't change to the tab, so I unconsciously click again, which activates a new tab). I never open new empty tabs (alt-enter + middle click), and I have tabs to load in the background (i.e. to not *steal* the focus), so everything about this feature serves as an annoyance to me. Is there anyway to disable this "feature" (Either by disabling it, or making the width of the bar 0. I don't care either way)?
    == This happened ==
    Every time Firefox opened
    == I upgraded to FF3

    You can hold down the mouse button on a scroll button a bit longer to initiate scrolling multiple tabs.<br />
    Otherwise you need to wait longer between the clicks on the scroll button.<br />
    If you click twice on a tab bar scroll button too fast then you perform a 'page up' or 'page down' and the tabs scroll a tab bar width like you noticed.
    I'm not sure what you mean with new feature because this is the behavior in Firefox 3.6.x as well.

  • How do I get the tab bar at the bottom of the screen (right above the task bar) WITHOUT Tab Mix Plus?

    ''locking - please stick with your original thread about this problem - https://support.mozilla.org/en-US/questions/934590''
    I like having the tab bar at the bottom of the screen; I use the task bar AT THE BOTTOM to switch between programs, so I want the the tab bar AT THE BOTTOM to switch between web pages. The only way I've found to get the tab bar at the bottom of the screen is the extension Tab Mix Plus. I used it for a long time, and it worked great.
    Unfortunately, when I recently updated to Firefox 14.0.1, I encountered an error: I could no longer middle-click on a link to open it in a new tab (which I do ALL the time). After some troubleshooting, I found that it was being caused by some incompatibility between Firefox 14.0.1 and Tab Mix Plus; upon removing Tab Mix Plus, my middle-clicking was back to normal.
    But without Tab Mix Plus, I'm back to having the tab bar at the top of the screen. I've searched and searched, and I can't find anything besides Tab Mix Plus that will let me put the tab bar at the bottom of the screen. I've found tons of stuff about the option "tabs on top", but that has to do with putting the tab bar above/below the navigation bar--it's still at the top of the SCREEN either way.
    What can I do?

    Reset the pref <b>layout.scrollbar.side</b> to '0' or set to '2' to place the scroll bar at the default right side.
    See:
    * http://kb.mozillazine.org/layout.scrollbar.side
    * http://kb.mozillazine.org/about%3Aconfig
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]

  • On Firefox 4, how can I put one "new tab" on the "tab bar" (The + sign) and one next to the "back/forward" buttons (as in FF 3.6)?

    On Firefox 4, how can I put one "new tab" on the "tab bar" (The + sign) and one next to the "back/forward" buttons (as in FF 3.6)?
    In my current Firefox, the "new tab" icon/item from the "customize" pop-up window menu of items is placed next to my home, back, forward buttons near the top-left of my header (Button 1 for "new tab"). Then, the tab bar automatically come with a small tab (with a + sign) to the right of your last tab opened (so you click on + and a new tab opens. Button 2 for "new tab"). I like to have this "new tab" button twice (as a + mini tab, and next to my "home icon".
    When I upgraded to Firefox 4, I seemed to be only able to "customize" or use the "new tab" in one place. Either as an icon next to home button, or as a "+ minitab", but NOT both.
    What can I do to put this button in Firefox 4 on BOTH places???
    Your help is really appreciated. I want to upgrade, but I want my buttons on both places...
    I upgraded to FF 4, but downgraded again just because this feature... that's just me of coarse :-)

    *New tab toolbar button: https://addons.mozilla.org/firefox/addon/new-tab-toolbar-button/

  • How do I open new tabs at the end of the tab bar?

    Recently switched over from Internet Explorer. One of things I liked about IE was if I adjusted some of the tabbed browsing settings, whenever I opened a link in a new tab, it opened it at the very end of the tab bar. No tab grouping, no opening next to the current tab. Seems like a pretty simple thing, but I just can't figure out how to set that up in Firefox.
    Any suggestions on how to take care of that? Thanks!

    You can set the pref <b>browser.tabs.insertRelatedAfterCurrent</b> to <i>false</i> on the <b>about:config</b> page.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)

  • I am stuck with a google theme behind the bookmark tab bar and url box. How do I get rid of it? changing themes isn't the issue - it's just all stuck in back!

    I set a theme on igoogle - but it seems to now be embedded in my firefox as it is behind the url box, behind the bookmark tab bar and at the bottom of the page. How do I get rid of it. I can still change themes but they stay on the google page as they should. this has nothing to do with my screen saver and my desktop screens - they are different and ok - seems to be stuck in Firefox particularly.
    == This happened ==
    Every time Firefox opened
    == a month ago when I changed themes on google

    @<b>gobby</b>
    Please do not use existing threads to ask a question, but [/questions/new start a new thread] instead.
    Then you also can provide troubleshooting information like your operating system and installed plugins (about:plugins), and extensions (Tools > Add-ons) and we will be better able to help you.<br />
    See [[Deleting bookmarks]]

Maybe you are looking for

  • How to connect Satellite Pro L10 to TV?

    Hi, I have a Satellite Pro L10 which has a VGA out put but no s-video out put and I would like to stream on to my TV! Does anyone know what I need to get or have to do to enable me to do this? I have a VGA to SCART led but this dose not seems to work

  • Problems with Greek accented characters

    After the update to AIR 2.0.2 I cannot input into any application greek with accented characters. Tried TweetDeck and Twhirl and neither work (used to before the update) Is this a bug or it needs some configuration I am working on Fedora13 but heard

  • Can't connect to APEX 3.0.1

    HI! I have a problem with APEX 3.0.1. I install it into Oracle XE 10g (with APEX 2.1). After that a can't connect to the Oracle Application Express Administration Services to create a workspace. My SYS and (or) SYSTEM password don't work. I receive "

  • Full Outer Join Help Needed

    Hi All, I am new to crystal and my sql. l have 2 command objects in that i have a common column pos_no.Now i need to apply Fullouterjoin between pos_no,but in crystal we don,t have that option. So i saw some threads that we need to apply leftouterjoi

  • Exceptions classes in 4.6C

    Hello SDNers, as Uwe had already written in the thread Throw statement equivalent in ABAP Objects. What would be better? 1. Would you try to develop in 4.6C the exception classes    (plenty of work, but keeping myself updated, and I can use them also