Tabbar inside a Navigation application

Hello everyone!
I'm a new iphone developer, I'm having some problems and I can't find a solution to them despite I've made a deep search in Internet and this forum.
I have developed a Navigation-based application with table views. Everything goes well.
Now I want that one of this tables sends the user to a new tab bar view when he clicks in a row.
My main problem is how can I do that? This is what I've tried:
1) Create a new ViewController with its own XIB.
2) With IB Add a Tabbar Controller to this XIB.
3) Create an IBOUtlet UITabBarController (with its property and synthesize code) in the ViewController I created in 1).
4) With IB connect this IBOutlet with the TabBarController.
5) In viewDidLoad method of the new ViewController I add the the new TabBarController's view as a subview of the new ViewController.
When I run the application everything seems to go OK, except that the tab bar items are only half visible (the upper side is visible, the lower side is hidden and the item title can't be seen).
I've tried everything but I don't know why the items are not appearing well. It seems to me that all the View (including the tabbar) is displaced some pixels to the bottom of the window so the items are semi-hidden.
Finally my questions are:
- Is there any better way to implement a Tabbar view inside a navigation based application?
- If my solution is correct, why are the items or the view appearing incorrectly?
Thank you very much for your help!

Ray gave you the technical; I'll give you the aesthetics:
I've never seen/used an app that sends users to another tab. The point of the tab bar is to provide different "sections" of the program—like [very] different functionality in a program (think of the Clock app), or to act as a filter for content (think of the iPod/Music app). If you need to send your user to another tab, I can't help but feel that you may want to re-think your structure. It probably won't get you rejected from the app store, but it's something that users aren't expecting. Maybe you should simply load a child view in the nav stack instead.
What's your specific situation?
*Check out my blog—Cups of Cocoa*

Similar Messages

  • To open a Excel and Doc file inside the AIR application

    How to open a Excel and Doc file inside the AIR application.  I have opened the PDF file inside the AIR application.  But i got stuck in opening the Exce and Doc file.  Please help me in this issue.

    AIR does not support this inherently. However, you could write code to parse these file formats. For example, the following is an ActionScript 3.0 library for reading and writing Excel files:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1375018

  • Error while loading a swf created in flash cs4, inside a flex application

    Hi there,
    I have created a rotating logo in flash cs4 using motion presets, named logoRotar.swf. I have used this inside my flex application:
    <mx:SWFLoader width="33.33%" height="100%" source="assets/logoRotar.swf">
    When I execute the flex application, I get this runtime error message:
    VerifyError: Error #1014: Class flash.geom::Matrix3D could not be found.
        at global$init()
        at fl.motion::AnimatorFactory3D/getNewAnimator()
        at fl.motion::AnimatorFactoryBase/addTargetInfo()
        at logoRotar_fla::MainTimeline()
    I also tried adding import flash.geom.*; statement in my flex application, I still get the same message.
    Flash player 10,0,22,87 is running in my browser.
    Please help me out....
    Cheers!
    Deepak

    Get Flex 3.3 and use -target-player=10
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • I am using iPhone 3GS. I am living in Saudi Arabia. I cannot find the directions with in GCC contries in the Navigation Application "COMPASS" of iphone. Can you please explain me how to work on it??

    I am using iPhone 3GS. I am living in Saudi Arabia. I cannot find the directions with in GCC contries in the Navigation Application "COMPASS" of iphone. Only the map is displayed. I am not gtting the directions or information when I use it. Can you please explain me how to work on it??

    See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files
    Add code to [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line.
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #context-sendlink {display:none !important;}</nowiki></pre>
    See also http://kb.mozillazine.org/Chrome_element_names_and_IDs

  • Is it possible to load an html page inside a JavaFX application?

    Hi
    Is it possible to load an html page inside a JavaFX application?
    Thank you!
    Alexandra.

    Actually it is very simple to load an HTML page inside a JavaFX application.
    var html:JTextPane = new JTextPane();
    html.setPage("http://www.berkshirehathaway.com/message.html");
    Stage
        scene: Scene
            content:
                ScrollView
                    node:SwingComponent.wrap(html)
    }A JavaFX application "tainted" by Swing is still a JavaFX application, isn't it?
    Loading an HTML page into a native JavaFX control would be a different story. It is hard.
    I don't think it is a top priority for JavaFX team to develop a control to render HTML. Using a Swing component, which supports HTML well, does not make a JavaFX application inferior. But, if JavaFX team could make a fully functional embedded browser control supporting HTML, JavaScript, etc., I would applaud that effort wholeheartedly.
    Right now, JTextPane inside a JavaFX application will crash the system, display gibberish, hang for ever or go haywire inexplicably, if JavaScript is used in the HTML page.

  • I want to find if the user is inactive inside my swing application

    i want to find if the user is inactive inside my swing application i.e he has not used the keyboard or mouse over a period of time

    Hai,
    This is code to notify you when the keyboard is left inactive for 10 seconds it will throw a message then the sytem will get exit.
    For mouse event i don't how to do the same process.
    import java.awt.KeyEventDispatcher;
    import java.awt.KeyboardFocusManager;
    import java.awt.event.KeyEvent;
    import javax.swing.JOptionPane;
    * InactiveTest.java
    * Created on October 9, 2006, 12:33 PM
    public class InactiveTest extends javax.swing.JFrame {
        int timeCnt = 0;
        Thread th;
        /** Creates new form InactiveTest */
        public InactiveTest() {
            initComponents();
            th = new Thread() {
                public void run() {
                    while(true) {
                        try {
                            th.sleep(1000);
                            timeCnt++;
                            System.out.println("Time Cnt"+timeCnt);
                            if(timeCnt == 10) {
                                JOptionPane.showMessageDialog(objInactiveTest,"Inactive for 10 seconds");
                                System.exit(0);
                                th.stop();                           
                                break;
                        }catch(Exception e){}
            th.start();
            KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(new KeyEventDispatcher() {
                public boolean dispatchKeyEvent(KeyEvent event) {
                    timeCnt=0;
                    //th.stop();
                    //th.start();
                    return false;
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
        private void initComponents() {
            jPanel1 = new javax.swing.JPanel();
            jLabel1 = new javax.swing.JLabel();
            jTextField1 = new javax.swing.JTextField();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jPanel1.setLayout(new java.awt.GridLayout());
            jLabel1.setText("Enter the Name  :");
            jPanel1.add(jLabel1);
            jPanel1.add(jTextField1);
            getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);
            pack();
        // </editor-fold>
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    objInactiveTest = new InactiveTest();
                    objInactiveTest.setVisible(true);
        // Variables declaration - do not modify
        private javax.swing.JLabel jLabel1;
        private javax.swing.JPanel jPanel1;
        private javax.swing.JTextField jTextField1;
        // End of variables declaration
        private static InactiveTest objInactiveTest;
    }rgds,
    rdRose

  • Opening browser window inside iOS/Android application

    Hi.
    I need to open browser window inside iOS/Android application built with Flex.
    Usualy, for desctop apps, i am using component <MX:HTML /> but it not compatible with mobile applications.
    Help me to find some solution for this.
    Thx, Art.

    You will want to look into StageWebView.  Here's an example: http://www.adobe.com/devnet/air/quick_start_as/quickstarts/qs_using_stage_web_view.html

  • Using APEX to create a navigation application using Oracle Maps/Google Maps

    Hi Guys,
    Does anyone know if there are any tutorials out there which would show me the basis to create a navigation application with Oracle Maps/Google Maps in APEX?
    I have found tutorials that show me how to get the map onto APEX and to view it but I cant find anything else that would give me a more in-depth tutorial
    Thanks in advance for your help
    -Mark

    Hi,
    I hope that this link might help
    http://www.oracle.com/technetwork/developer-tools/apex/integration-086636.html#GOOGLE
    Br,Jari

  • Factory inside a web application. Design issue.

    Hi all,
    My web application has a SearchManager. (which obviously doing search).
    class SearchManager{
       SearchFactory factory = new MySearchFactory();  
       public SomeClass onSubmit(HttpRequest request, HttpResponse response, SomeCl obj){
            factory.search();
    }I need a connection (instance of MyConnection) for doing the search which is kept in the session.
    My question is: which is the best option from the following.
    Option 1
    Send the HttpSession into the SearchFactory and retrieve MYConnection instance from session, and perform the search.
    factory.search(searchCriteria, session)
    Option 2
    Retrieve the MYConnection instance from session inside the SearchController and send the MyConnection to SearchFactory and perform the search.
    MyConnection connection = session.getAttribute("connection");
    factory.search(searchCriteria, connection);
    One point to note:
    SearchManager class does not require the MyConnectioin instance for any reason. But the Factory also does not need the session except to get the connection instance.
    Could you guys please discuss this and show me which is good and why?
    Thanks in advance.
    Kamal

    If the searchManager has a reference to connection wouldn't
    it be an extra burden to have the searchManager in
    the session rather than just having the connection
    object?Extra burden on what?
    If you store a reference to the SearchManager or if you store a refernce to the connection object, there is no difference?
    I personally feel that it is better to store the SearchManager. You can personally feel different.
    Now my question is: when we store an object in the
    session, what get stored in the session actually?A reference to the object in the JVM gets stored.
    Say above is my searchManager. If I store an instance
    of this will it store the connection attribute also
    inside the session? What actually get stored?When you store the reference to the SearchManager, the SearchManager has a reference to the connection object.
    Only the reference to the SearchManager is stored in the sesssion.
    and the connection reference is part of the SearchManager.
    If you store the SearchManager reference in the session object, there is no need to explicity store a reference to the connection object becuase the SearchManager has this already.

  • Web browser inside web flash applications

    Dear all, I need  web browser inside my web flash application.. i use Flash Builder.. i dont find a any straight way to do this.. i saw examples using iFrames.. cud anyone help with how to do this in the best way..?

    JEditorPane (http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JEditorPane.html)
    offers some support for displaying HTML.

  • I need help with my project [Navigator application acesible thru the phone]

    I am currently working on my project proposal for the project i want to do. I need to develop a navigator appliation that is accesible thru a phone and hsa the following features:
    1. Load image in display buffer and deending on wat user inputs, then i can manipulate the image and draw stuff on it like if the user requires the shortest route, then it can be drawn...
    2. Provide traffic updates from rss feeds [online]- in this case i need to know how to use the http request class in J2ME wireless toolkit.
    3. Incorporate GPS System or if any other otpion is there for me to be able to tell the location of a user dynamically and use that info to map the location on the map image in the display buffer
    4. Provide info about places using pop ups depending on what the user inputs
    5 general advice on MIDP development esp that its different from wat am used to [desktop programming]...
    The biggest challenge is that am new to mobile apps esp MIDP,Am a student in my final year, and the proosal is this coming week and ineed some help [or should i say breakthrough] SOMEBODY HELP ME..!!

    Sup mismis ,
    Its a shame to say this but am so new to this i would bore you to death coz i have little (if any soultions)...but i believe if we work together we can go far...
    The gps part was quite as process because either way, i had to go thru a 3rd party to get the service, so wat i said i will do is simulate a gpsi.e have a sub component on the side that simultes a gps (as i believe it return the latiotude and longitude positions of wea u are) then using this info i can trace on which region of the map you fall in depending on what mesh u fall in, is that simple or wat?
    The othe rthing is that am using J2ME which am not familiar alot wih. Ive used netbeans but for desktop applications not mobile....
    But i also have a question, since the whole app would be better on the mobile fully, how do u include the dbase?

  • Portlet inside Webcenter Framework Application

    Hi,
    I need to implement portlet functionality of editing and moving around components in my webcenterframework application. i went through the cue cards, and all possible oracle documents. i am not able to figure it out. Able to follow till registering portlet in the webcenter framework application. But where to write the logic/code of what content we want inside portlet.?
    For example say i have testFramework webcenter framework application and portletproducer application testPortlet. Inside the myPage.jspx present in testFramework application after importing the portlets i created, Where to write in the code. and i need to cal/invoke webservices from myPage.jspx to display the response in the Portlets. so Where Should i have to create the pages? In which application? How to Go about it.. Can i Please get some links or blogs to go about this or sample application?
    Thank You

    If you are using WebCenter, then instead of creating a portlet you can just create regular ADF Taskflows, and then dynamically add them to your pages with the webcenter runtime customization functionality.
    See for example the lab here: http://www.oracle.com/technetwork/community/developer-day/vdd-oracle-fusion-dev-day-1725597.html
    If you are creating a portlet in WebCenter then you need to write the code behind it. Again you can create a regular ADF page that consumes a Web service for example and then expose it as a portlet - if you need to use it outside of WebCenter.

  • To call methods inside the same application is possible to use RMI ?

    hello,
    What I should like to know is if RMI can easily be used to implement comunication (calling methods) inside classes that are part of the one same application... This should be a restrict case to use RMI...
    The reason to do it come from the need to use the instance of a class knonwing it only as Object... This can be good to do if some code is used for general pupose in many different contexts.
    In this case you can pass to the "server class" a parameter 'o' of type Object (all the classes extend Object) of the "customer class" to get back informations if some elaboration happen inside the "server class"...
    This purpose is generally implemented with event listeners, but perhaps it could be done easily using RMI too (I dont know it...).
    Using RMI in this simple situation, don't should require anything of complicate (stub, .... mashalling parametres....) to have the reference to method of the "customer class" to call. The "server class" already recives a reference of the "customer class" how parameter of type Object, and the mame of the method too.
    I propose a simple thoeric example to explain really what I said before:
    Class Server {
        String methodName;
        Object obj;
        pubic Server( Oject o , String metName){  // constructor
            obj = o;
            methodName = metName;
            // some thing is done and, at last, the method callbakMethod() is executed
            callbakMethod();
        }// constructor
        public void callbakMethod(){ // this method have the purpose to call customerMethod()
              Class c = owner.getClass();                            
              Method m = null;
                  try {
                          m = c.getMethod("callBackMethod",null);     
                         * // (1)
                          // I think that here we could have the possibility to call
                          // the method  customerMethod() belonging to class Customer..
                          // I don't know if it possible and  ...  (and if it is possible) I am not able to do it*
        }// callbakMethod()
    }  // class Server
    Class Custmer{
        public Customer() { // constructor
              Server s = new Server (this, "customerMethod");
        } // constructor
        customerMethod() {    // I would this method is called from class Server
            // do some thing.....
        }  //customerMethod
    }  // class CustomerMy ask is: it is possible to call customerMethod() from the Server class ?...
    If the aswer is yes, I wold know the sintax to use to do it, please.
    thank you
    regards
    tonyMrsangelo

    RMI doesn't help you in the slightest here. You can just realize it all using local method invocation. All RMI does is to make that remote. If the objects aren't remote there is no point.

  • How can I execute a  .bat  file from inside a java application

    I have a .bat file which contains an executable file(.exe) and some input and output file names. What commands can I use to execute this bat file from my java application.

    After raeding tkleisas' reply; i am trying to invoke another application (which can be invoked from the command line) by using a batch file and trying Runtime.exec for executing a batch file.
    My current code is:
    Runtime runtime = Runtime.getRuntime();
    Process trialProcess;
    trialProcess = runtime.exec("cmd.exe /C start C:\\guns.bat /B");
    And my guns.bat looks like:
    cd C:\CALPUFF
    echo trial
    start calpuff.exe CALPUFF.INP
    This is not working for me and i get the following in the error stream of the trialProcess:
    Error :
    The system cannot execute the specified program.
    Process finished with exit code 1
    Has anyone come across something like this and know what's wrong with this one??
    thnx

  • Issues in running a flash app inside a flex application

    I am trying to load and run an AS3 SWF inside my Flex app. I am using SWFLoader component. This SWF file is an animation which has several clickable buttons, drag and drop of items inside the swf and some text boxes. Can some one please help me in identifying how to do this in Flex? I am able to load the swf, but when I try to drag one of the items and put it in another spot within the swf stage, it does not work an dthe buttons do not appear to be working. Do I have to know the functions within the AS3 SWF? Any help is appreciated. Thanks, Ramesh

    I tried with some of the AS3 files from Adobe samples (http://www.adobe.com/devnet/actionscript/samples.html), for eg., the Drawing API. There are slider components in the flash app that don't show up either. Does that give anyone a clue as to what might be wrong? Thanks, Ramesh

Maybe you are looking for