Triggering a custom action in a tab bar controller

Hey guy,
As you know, normally, when you click an item in a tab bar it is going to load a view right?
But I was wondering if there is a way to trigger a custom action when you click an item in a tab bar controller instead of loading a view.
If there is a way to do it, then how to do it?

Hi David -
Daviiidddd wrote:
if there is a way to trigger a custom action when you click an item in a tab bar controller instead of loading a view.
I think the implementation would depend on whether you wanted the custom action item to remain "selected", and if so, for how long? In other words, is the action item momentary or selectable? In either case, can we assume that tapping the action item leaves the current view visible? If not, what will the user see? Will the action item be visible from all the other views?
As you know, normally, when you click an item in a tab bar it is going to load a view right? \[emphasis added by friendly neighborhood helper\]
If you see most of us nodding, "yes", in agreement, it might be time to review [Tab Bars|http://developer.apple.com/iphone/library/documentation/UserExperience/Con ceptual/MobileHIG/SpecialViews/SpecialViews.html#//apple_ref/doc/uid/TP40006556- CH10-SW13] in the +iPhone Human Interface Guidelines+. Make sure your idea doesn't do something tab bars aren't expected to do. If you're not sure, look at some of the other UI options, e.g. [Toolbars|http://developer.apple.com/iphone/library/documentation/UserExperienc e/Conceptual/MobileHIG/SpecialViews/SpecialViews.html#//apple_ref/doc/uid/TP4000 6556-CH10-SW10], to see if there's a better fit for what you're doing.
\- Ray

Similar Messages

  • How to add custom action for Publishing Tab on Pages?

    I am able to add a custom action for libraries tab on document library , but i am unable to add it on Publishing tab on Pages.
    Below is the code , what i am trying.
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
    Id="Ribbon.PublishTab.Publishing.CheckLinkedPageItems"
    Location="CommandUI.Ribbon"
    RegistrationType="List"
    RegistrationId="850"
    Sequence="40"
    Title="Move Documents">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition Location="Ribbon.PublishTab.Publishing.Controls._children">
    <Button
    Id="Ribbon.PublishTab.Publishing.CheckLinkedPageItemsButton"
    Alt="Check Linked Page Assets"
    Sequence="40"
    Command="CheckLinkedPageItems"
    Image32by32="/_layouts/images/centraladmin_systemsettings_email_32x32.png"
    LabelText="Check Assets"
    TemplateAlias="o1"
    ToolTipTitle="Check Linked Page Assets"
    ToolTipDescription="Checks each image, document and page linked to from this page and verified if the asset is both working (not a broken link) and published. You may also use that page to publish all unpublished assets at once."
    />
    </CommandUIDefinition>
    </CommandUIDefinitions>
    <CommandUIHandlers>
    <CommandUIHandler Command="CheckLinkedPageItems" CommandAction="javascript:alert('button clicked!);" />
    </CommandUIHandlers>
    </CommandUIExtension>
    </CustomAction>
    </Elements>
    any thoughts?

    Hi,
    Check the secquence number . I don't see any issue in your code. Try with different sequence numbers.
    Did you find this Helpful? Please Mark it So! Thank you. Sachin Kumar

  • Loading a Tab Bar Controller

    Hi,
    I am trying to make an iPhone application where there will be a settings view that is made of a tab bar controller. I have declared the tabBarController, and linked it to the app delegate in the main window.xib file. However, when I try to switch to it by pressing my button that should start the IBAction to switch to it, the app terminates due to an uncaught exception. Here is my code:
    -(void)switchToSettings {
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:1.5];
    [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:window cache:YES];
    [[gameViewController view] removeFromSuperview];
    [self.window addSubview:[settingsTabBarController view]];
    [UIView commitAnimations];
    gameViewController = nil;
    Someone please help! Thanks in advance.

    Hi David -
    Daviiidddd wrote:
    if there is a way to trigger a custom action when you click an item in a tab bar controller instead of loading a view.
    I think the implementation would depend on whether you wanted the custom action item to remain "selected", and if so, for how long? In other words, is the action item momentary or selectable? In either case, can we assume that tapping the action item leaves the current view visible? If not, what will the user see? Will the action item be visible from all the other views?
    As you know, normally, when you click an item in a tab bar it is going to load a view right? \[emphasis added by friendly neighborhood helper\]
    If you see most of us nodding, "yes", in agreement, it might be time to review [Tab Bars|http://developer.apple.com/iphone/library/documentation/UserExperience/Con ceptual/MobileHIG/SpecialViews/SpecialViews.html#//apple_ref/doc/uid/TP40006556- CH10-SW13] in the +iPhone Human Interface Guidelines+. Make sure your idea doesn't do something tab bars aren't expected to do. If you're not sure, look at some of the other UI options, e.g. [Toolbars|http://developer.apple.com/iphone/library/documentation/UserExperienc e/Conceptual/MobileHIG/SpecialViews/SpecialViews.html#//apple_ref/doc/uid/TP4000 6556-CH10-SW10], to see if there's a better fit for what you're doing.
    \- Ray

  • 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

  • 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.

  • Using multiple UIWebView objects with a Tab Bar Controller.

    So, I'm pretty new to this cocoa touch language and seem to be hitting a road block.
    I have an application that will use a Tab Bar Controller as a navigation. Each tab will display a different UIWebView object that's been linked to their own URL's. I can't for the life of me figure out how to get past the first UIWebView. If they're all the same object, with the same name, how can I set a different url for each??
    I've been going nuts over this for the past few hours and can't find any documentation online so any help would be AMAZING. Thank you very much.
    Message was edited by: thenameisjesse

    If they're all the same object, with the same name, how can I set a different url for each??
    They're not the same object. You alloc and setup each UIWebView independently.
    UIWebView is just a view so set it up the same way you would if you had a tabbar with multiple views.
    The default template has 2 views as I recall. Change the UIViews to UIWebView. As you switch them in set the URL and have it load.

  • Problem with tab bar controller!

    I'm fairly new to xcode (and programming for that matter) so please bear with me!
    I'm creating a utilities app and would like to put tabs on the flipside view controller. a normal push segue to a tab bar controller from the flipside doesn't seem to do the job when I run it.
    I'm not sure if I need to put a tab bar on the flipside view controller itself and connect it using coding? If so, how? Or is there another solution?
    Thanks in advance!

    I have an application based on the Tab Bar template as well, yet mine works. I also have views created via IB for each tab, but there are a series of connections which need to be made for the viewDidLoad method to be called. I made some notes along the way, perhaps they are helpful.
    In these notes, what I did was create the Tab Bar project, but I didn't like the way the views were set up, so I created a series of new views, added them the way I preferred (all from files, all the same view, including the first view), and then deleted the two default views.
    - Create a Tab Bar project.
    - With XCode, create a new UIViewController for the new first view, save it, add it to the project.
    - In IB, create a new view, save it, and add it to the project.
    - In the new view's File's Owner, set the class to the new view controller.
    - Connect the view outlet to the new view created.
    - Go to the tab bar control in the MainWindow.xib and create a new view controller.
    - Select the new tab button, and type in tab name and xib filename (without the extension).
    - Compile and run. With a label in the new view, it is easy to see if it works.
    Let me know if you find the problem.

  • 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

  • More tabs than 5 with a tab bar controller

    When you create a tabbar based app using the template from the sdk you can see all your tabs (14 in my case) along the bottom in IB. See image:
    However when you compile and run the app you get only 4 and a more button. I would like to display all 14 at once as I don't think the more construction is very user friendly (at least not on an iPad in landscape mode ).
    Any suggestions

    Is there such an obvious answer to this that no one deigns to answer? Or is it really not possible? Do I have create my own version in IB? One window along the bottom containing a number of buttons and when one of the buttons is selected the corresponding xib is loaded in the large window above it. So basically what tabbar template does but without the bells and whistles and all hand coded.

  • How to disable a tab in a spark tab bar?

    I have a spark tab bar linked to a ViewStack.  In olden days, IIRC,  setting the enabled property of a viewstack member would set the corresponding tab inactive.  However, if I try that now, the tab control is still active, but the contents of the viewstack for that tab is indeed disabled.
    To reiterate:  I want certain tabs in a spark tab bar to be disabled (i.e. unable to be chosen and displaying their disabled skin state).
    <s:TabBar id="tabBar" dataProvider="{tabStack}" x="70" y="91" skinClass="CalculatorTabsSkin"/>
    <mx:ViewStack id="tabStack" width="100%" height="100%" creationPolicy="all" change="tabStack_changeHandler(event)">
         <s:NavigatorContent id="nc1" label="PIERS">
         <comp:Tab1 id="tab1"  width="100%" height="100%" continue="tab1_continueHandler(event)" />
         </s:NavigatorContent>
         <s:NavigatorContent id="nc2" label="FOOTINGS">
         <comp:Tab2 id="tab2" width="100%" height="100%" continue="tab2_continueHandler(event)" numberOfPiers="{totalNumberPiers}" />
         </s:NavigatorContent>
         <s:NavigatorContent id="nc3" label="BAGS OR TRUCK?">
         <comp:Tab3 id="tab3"  width="100%" height="100%" totalCubicYards="{totalCubicYards}" totalNumberBags="{totalNumberBags}" />
         </s:NavigatorContent>
    </mx:ViewStack>

    Addendum:
    Literally two minutes after I got back to actually working, I found a more "elegant" solution.  I posted it elsewhere, but I guess I forgot to share it here. =/ So I thought I'd update this real quick. =)
    If you apply a custom skinClass to your tab bar you can bind the tab.enabled property just like you'd expect/want.
    <!-- some component that has the TabBar in it... -->
        <fx:Script>
             <![CDATA[
        [Bindable] private var tab2IsReady:Boolean = false;
        private function checkCriteria():void{
             tab2IReady = someOtherThing.isFinished;//Boolean
        ]]>
        </fx:Script>
    <s:TabBar id="theTabBar"
       dataProvider="{viewStack}"
       skinClass="skins.CustomTabBarSkin"/>
    <mx:ViewStack id="viewStack">
          <s:NavigatorContent label="Tab index 0">
               <!-- Your first tab's content -->
          </s:NavigatorContent>
          <s:NavigatorContent label="Tab index 1" enabled="{tab2IsReady}">
               <!-- Your second tab's content -->
          </s:NavigatorContent>
    </mx:ViewStack>
    <!-- rest of the component that has the the TabBar in it... -->
    When you type "skinClass" use the auto complete to generate the custom skin (named whatever you want).
    The generated code will appear like below (I left out the Script tag).
    <?xml version="1.0" encoding="utf-8"?>
    <!-- skins/CustomTabBarSkin.mxml
    Adobe's copyright & doc comments
    -->
    <s:Skin
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:fb="http://ns.adobe.com/flashbuilder/2009"    
        alpha.disabled="0.5">
        <fx:Metadata>
            <![CDATA[
             * @copy spark.skins.spark.ApplicationSkin#hostComponent
            [HostComponent("spark.components.TabBar")]
            ]]>
        </fx:Metadata>
          <!-- optional Script tag here -->
        <s:states>
            <s:State name="normal" />
            <s:State name="disabled" />
        </s:states>
        <!--- @copy spark.components.SkinnableDataContainer#dataGroup -->
        <s:DataGroup id="dataGroup" width="100%" height="100%">
            <s:layout>
                <s:ButtonBarHorizontalLayout gap="-1"/>
            </s:layout>
            <s:itemRenderer>
                <fx:Component>
                    <s:ButtonBarButton skinClass="spark.skins.spark.TabBarButtonSkin" />
                </fx:Component>
            </s:itemRenderer>
        </s:DataGroup>
    </s:Skin>
    <!-- End skins/CustomTabBarSkin.mxml -->
    Then add the enabled property to the ButtonBarButton & bind it to data.enabled in your skin class.
    Change:
               <fx:Component>
               <s:ButtonBarButton skinClass="spark.skins.spark.TabBarButtonSkin" />
           </fx:Component>
    To:
               <fx:Component>
               <s:ButtonBarButton skinClass="spark.skins.spark.TabBarButtonSkin"
                    enabled="{data.enabled}" />
         </fx:Component>
    Then any <s:NavigatorContent/> used with a TabBar using that skin will respect the enabled property and do exactly what you expect & want (be enabled when true, & disabled when false).
    Hope this helps some people.  WIsh I'd remembered to re-post it here when I first figured it out.
    Happy Coding! =D
    Todd
    Message was edited by: Chaos7703 - Just made one statement a bit more explicit.

  • Tab bar application and UIScrollView

    Hi Everyone,
    I am creating a tabbar application.
    I have 5 tabs already setup, and now one of the tabs needs a few more fields appended to the bottom of the view.
    I am using a single NIB file with all the views built inside of it.
    What I need to do is take the second tab and add a UIScrollView to it, so I can add the additional fields to the bottom.
    I would like to stick with using IB....
    Here is the stack I have setup, please advise where I would insert the UIScrollView
    App
    First Responder
    App Delegation
    Window
    Tab Bar Controller
    Tab Bar
    Main View Controller (Log)
    Selected Main View Controller (Permit)
    Scroll View
    View
    Tab Bar Item (Permit)
    Main View Controller (Tags)
    Main View Controller (Release)
    Main View Controller (Other)
    I have placed the ScrollView both within the View, and, as shown, a view as a child of the scroll view...
    I have set the height of the view and the scroll view at 800px
    Please advise on what I am missing in this.
    Thanks
    tony

    alt-088 wrote:
    I have all the views loaded within the same XIB file.
    It's usually better to make a separate xib for each view. The most important reason for this is memory management. Firstly, all the views defined in MainWindow.xib are loaded at startup. This means a view will be loaded even if its tab is never selected. Views defined in a separate xib won't be loaded unless and until they're needed.
    It's also much easier to unload a view if its defined in a separate xib, since the view, along with all its subviews, can be reloaded at any time by simply reloading the xib (e.g. by initing a new controller with [initWithNibName:bundle:|http://developer.apple.com/iphone/library/documentatio n/UIKit/Reference/UIViewControllerClass/Reference/Reference.html#//appleref/occ/instm/UIViewController/initWithNibName:bundle:]). This is especially important when the controller receives a low memory warning. For example, the default implementation of [didReceiveMemoryWarning|http://developer.apple.com/iphone/library/documentatio n/UIKit/Reference/UIViewControllerClass/Reference/Reference.html#//appleref/occ/instm/UIViewController/didReceiveMemoryWarning] will unload a view defined in a separate xib because the method knows how to reload that view.
    Another reason for separate xibs is that the main xib needs to be loaded before the app can launch. Anytime you remove an object from MainWindow.xib, you'll reduce launch time.
    should i have a view for each of the tabs in the main form?
    You probably already have a view for each of the tabs, so I assume you meant to ask, "Should i have a separate xib file for each controller which is connected to the tab bar controller in MainWindow.xib?"
    If I restated the question correctly, the answer is yes, as explained above.
    Note the Tab Bar App template demonstrates both ways to define each controller's view. The first view controller's view is defined in MainWindow.xib. The second controller's view is defined in SecondView.xib. The difference between these setups can be seen in the Attributes Inspector. If you select the First View Controller (most easily done in the xib (icon) window if the View Mode switch is in the Center position to display the view hierarchy) and open the Attributes Inspector, you'll see the NIB Name selection is blank. If you then select the Second View Controller, the NIB Name selection will be "SecondView".
    You could move the First View Controller's view to a separate xib by making a new xib named "FirstView.xib" (File->New File..->iPhone OS->User Interface->View XIB), deleting the View object under the First View Controller in MainWindow.xib, and then setting the NIB Name selection in the Attributes Inspector to "FirstView". After that, open FirstView.xib, select File's Owner and set its Class to FirstViewController in the Identity Inspector, then connect the View object to the 'view' outlet of File's Owner.
    You can make a separate xib for any of your views in the same way. Of course in the case of a scrolling view, you would add a UIScrollView object and connect it to the 'view' outlet of File's Owner, then connect the UIView object to the 'contentView' outlet of File's Owner as discussed previously (after setting the Class of File's Owner to a custom class that has a contentView IBOutlet).
    Whenever you make a separate xib for one of your views, _make sure File's Owner is set to the same class as its parent controller object in MainWindow.xib_.
    \- Ray

  • 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] Problem with sdk 3.0 - tab bar

    Hi,
    I'm getting the following error when running my project:
    'Directly modifying a tab bar managed by a tab bar controller is not allowed.'
    In version 2.2.1 I can run the app, but in 3.0 I can't. Can someone help me?
    thanks,
    pitteri
    Message was edited by: pitteri

    I haven't worked with 3.0 yet, so can't speak from direct experience, but you might be reporting a bug fix. The 2.x doc says:
    Although a tab bar controller uses a tab bar in its implementation, you should never need to, nor should you, access the tab bar directly.
    So I'd consider the possibility that 3.0 has just tightened up an access point that wasn't meant to be there. I'd look for any code that's been talking to the tab bar and see if there's a workaround. If you don't think you have any such code, post any code that might be involved and maybe someone here can help.

  • 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

Maybe you are looking for

  • How to compile and run servlets in Eclipse?

    Does somebody known how can I compile and run servlets in Eclipse IDE? I've added and configured Tomcat's plugin. I've created a project with my example servlets source, and I don't know what farther. How do I have compile it without main method? I m

  • Using videos in Photoshop CS5 32 bit

    Have reviewed a number of new vid tuts on doing things with video files in Photoshop CS5.  I've tried it but every time I try to bring in a video file into CS5 Photoshop 32bit, PS stops working and shuts down.  I also see I do not have a "Video" work

  • Sign In Not Working

    I have purchased loads of music and audiobooks, the last on was in April...Now when I sign in, it flips me to the billing info screen, my info has not changes, I add in the security code, click done. When I go to buy again, the same thing happens. An

  • HP 4050 adobe acrobat pdf issue

    I have an HP LaserJet 4050T.  When I get pdf docs they print very slow.  I have upgraded drivers on the hp site (using pcl 6 version currently) to no avail. Is there any suggestion to speed this up.  I work in mortgages and documents and need to prin

  • Cost Centre Report

    Dear Sap Guru, How I can find out Cost centre wise Report. Is there any Std. Report or other method ? Plz suggest me. Thx in advance. Neha