Problem with tab bar and the method viewDidLoad

Hi,
I created a new project from the templates (tab bar application). then I created two views, for the two itens on the bar. The second view controller has a method viewDidLoad, but the method is loaded when the program launches. I tried the loadView method, but it´s never called.
How can i know when the view is loaded through a tab bar item?
thanks

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.

Similar Messages

  • Hi i have i problem with my iphone and the problem is the security question i have forgot the answers

    Hi i have i problem with my iphone and the problem is the security question i have forgot the answers
    I understand German and Italian i littlebit English

    You need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (106626)

  • Had a problem with newest update and the advice from turingtest2 resolved my problem just to say thanks! Had never used this route before so was less painful than thought it would be again thanks.

    Had a problem with newest update and the advice from turingtest2 resolved my problem just to say thanks! Had never used this route before so was less painful than thought it would be again thanks.

    how can i find out what the fix is that works..please

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

  • Weird problem with tabs bar

    So I just installed the new Safari 4 on my iMac after seeing it on my Dad's Macbook. How come his tab bar automatically show's up under the bookmarks bar and mine doesn't? He didn't change any settings or anything, that is just the way his looks after the install, but mine doesn't look like his. He has the address bar(with all the default buttons, etc . . .), bookmarks bar, then the Tabs bar right underneath. Mine just has the address bar and the Bookmarks bar, nothing else. How can I make it look like his?
    This is on the official release, not the beta.

    Go to Safari>View>Show Tabs bar.

  • Problem with iTunes Match and the song "This will be (an everlasting love)" from Natalie Cole

    Hello,
    I'd like to report a problem with iTunes Match and Natalie Cole's song "This will be (an everlasting love)".
    When I stream it or download it on another device I don't get Natalie Cole's song but another one from Maxine Nightingale (Right back where we started from).
    Please tell me if you have the same problem or how I can report this problem to apple.
    Thank you.

    Hi,
    This is a user to user forum - not Apple. Contact them http://www.apple.com/support/itunes/contact/
    Alternatively if the song was purchased from iTunes, you may be able to report the problem by signing into you iTunes account on your computer. Report an problem with an item you bought from the iTunes Store, App Store, Mac App Store, or iBooks Store
    JIm

  • Problems with tethered capture and the 4.2 update

    I'm having problems with tethered capture and my canon 1ds mark III since I updated to 4.2. Is anybody else having issues with tethered capture that was working fine before the update?

    http://forums.adobe.com/community/search.jspa?peopleEnabled=true&userID=&spotlight=false&c ontainerType=14&container=3316&rankBy=date&q=4.2+tethering

  • Problem with ADF Table and doDML method.

    HI,
    I have a problem with ADF Trinidad Table. I have one search form and which i click on search button the result is coming it's working fine, And when i click on CreateInsert button to insert a new row it's adding after entering all the data into the table when i click on button on the page i am getting error like
    Messages for this page are listed below.
    Error     
    Missing mandatory attributes for a row with key oracle.jbo.Key[1 ] of type AppModule.CmSubscribersView1
    Error     
    Attribute Name in AppModule.CmSubscribersView1 is required
    Error     
    Attribute CreatedBy in AppModule.CmSubscribersView1 is required
    Error     
    Attribute CreationDate in AppModule.CmSubscribersView1 is required
    Here Created By and Creation Date are not available in the table i need to set these data from back end for that i have used doDML() method in the entity object and i written the logic but this method not even invoking as i couldn't able to see the logs in the server.
    protected void doDML(int operation, TransactionEvent e) {
    super.doDML(operation, e);
    System.out.println("^^^^^^^^^^^^^^^^66666Inside entity object^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ");
    // AppModuleImpl am=new AppModuleImpl();
    // Number userID= am.getUserId();
    //System.out.println("User id in the Entity Object Is: "+userID);
    oracle.jbo.domain.Date dt = new Date();
    if(operation ==DML_INSERT){
    EntityDefImpl cmSubscribers=CmSubscribersImpl.getDefinitionObject();
    CmSubscribersImpl newSubscribers=(CmSubscribersImpl)cmSubscribers.createInstance2(getDBTransaction(),null);
    Number n=new Number(1599);
    newSubscribers.setCreatedBy(n);
    newSubscribers.setCreationDate(dt);
    newSubscribers.setLastUpdateDate(dt);
    newSubscribers.setLastUpdatedBy(n);
    But still the same problem can any one help me inthis.
    Regards,
    Edited by: user5802014 on Aug 21, 2009 2:04 PM

    Hi,
    Modify your method to call super.doDML() after initialization of mandatory attributes as below:
    protected void doDML(int operation, TransactionEvent e) {
         oracle.jbo.domain.Date dt = new Date();
         if(operation ==DML_INSERT){
              //PRE-INSERT code begins     
           EntityDefImpl cmSubscribers=CmSubscribersImpl.getDefinitionObject();
           CmSubscribersImpl newSubscribers=(CmSubscribersImpl)cmSubscribers.createInstance2(getDBTransaction(),null);
           Number n=new Number(1599);
           newSubscribers.setCreatedBy(n);
           newSubscribers.setCreationDate(dt);
           newSubscribers.setLastUpdateDate(dt);
           newSubscribers.setLastUpdatedBy(n);
           //PRE-INSERT code ends
           super.doDML(operation, e);
           //POST-INSERT code if any
         }else
            super.doDML(operation, e);
    }Sireesha

  • Problem with media player and the uploaded music

    since i downloaded the new version of the nokia pc suite every time i upload a song to the memory and try to update the library in the media player, the phone just shows the updating bar but it doesnt do nothing,it just says updating and thats it i have to cancel the operation and close the media player, and the only i dont remember that well but i think the nokia music manager is uploading the songs to another folder, right now the default folder is e: sounds/digital can that be the problem ?
    and another thing, if i go to the built in archive manager in the phone i can see the songs i upload but in the media player i dont see them. Any idea?
    Message Edited by alex18 on 18-Apr-2008 08:39 PM

    25-Apr-2008 03:56 AM
    alex18 wrote:
    well i found another thing on my phone , everytime i turn off the cellphone and then turn it on the media player is allways open on the background.
    this is a normal feature of n73 ME...sad isn't it? that's one thing i didn't want with my old phone...
    What you can do is to go to music player then click options and then exit...
    hope this helps.
    CeS
    "The best index to a person's character is how he treats people who can't do him any good, and how he treats people who can't fight back"

  • Problems with sapjco.jar and the EP6 SP19

    Hi,
    <b>
    We have recently upgraded the portal server from EP6 SP9 to EP6 SP19.
    Some of the applications that use Jco connections to interact with the backend, are giving exceptions while executing. These applications were properly executing before the upgrade.
    Now, Is there any problem with the sapjco JAR file version??? How to resolve this problem???
    </b>
    regards
    Brahmachaitanya

    Hi Brahmachaitanya ,
    download the latest version of sapjco.jar, librfc32.dll,sapjcorfc.dll from service market place which is compatable to your OS.
    then place the two dll files under windows/system32 folder
    even if it doesnt work,
    in the createclient() method give user id and password, language,host name in capital letter(upper case)
    and try it
    rgds
    srinivas

  • Problems with Discoverer Viewer and the printable page

    Hi,
    I have a problem in Discoverer Viewer. I run a workbook, see the results and I click on "Printable Page". I set the page setup options to "Portait" and "100% scale". I preview the workbook in a PDF file and it's ok, I see the results in "Portait" and "100%".
    I close the PDF file and I click again on the "Printable Page". This time, I set the workbook to "Landscape" and "20% scale". I preview the workbook in a PDF file and it's NOT ok, the results are still in "Portait" and "100%". And the date/time in the workbook is the time when I run the workbook the first time. So, it's seems like a browser cache problem. The problem repeats until I clear the brower cache. At that moment, the workbook will take the page setup that I set at this time. However, it will be the same workbook with the same results until I clear the cache once again.
    If I save the PDF file on my Windows Desktop and I overwrite it each time, it's ok.
    Can somebody help me on this??
    Thank you!
    Mathieu

    Hi Michael,
    I'm clearing the browser cache by going in Tools -> Internet Options. In the "General" tab, I click on the "Delete files..." in the "Temporary Internet Files" section" (middle of the window).
    But I don't indicate that Discoverer is saving my printable page changes. I say that the first time I run a workbook, Discoverer saves it (the results) in the "Temporary Internet Files" folder in a PDF file. Each time I run the same workbook after that, Discoverer don't overwrite the file in the "Temporary Internet Files" folder. He takes the PDF file that is already there and show it to me. So, the results are the same even if the data has changed. It does this until I clear the browser cache (it deletes the PDF file in the "Temporary Internet Files" folder).
    Do you understand?
    Regards,
    Mathieu

  • Problem with RSA/AES and the wrapped Key

    Hallo!
    For a server-client communications, I would like to use a hybrid encryption.
    For this I create an object of a serializable class that contains several properties, including the data that are to be transferred from A to B (Object, encrypted by AES), and the AES key, but wrapped by RSA (byte []).
    My basic problem is, that if I send the wrapped key, I get at the destination another byte array and thus the key can not be decoded:
    java.security.InvalidKeyException: Invalid AES key length: 256 bytes
    When I look at the string representation of the byte array before sending and immediate after receiving, the byte arrays are diffrent. Why?
    Extract from the encrypt method:
    TransportObject obj = new TransportObject();
        KeyGenerator keygen = KeyGenerator.getInstance("AES");
        SecureRandom random = new SecureRandom();
        keygen.init(random);
        Key key = keygen.generateKey();
        Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding");
        cipher.init(Cipher.WRAP_MODE, publicKey);
        byte[] wrappedKey = cipher.wrap(key);
    // Here I put the byte array in the object to be transmitted
        obj.setKey(wrappedKey);Extract from the decrypt method:
    / / Here I read the byte array from the received object
    byte[] wrappedKey = obj.getKey();
    Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding");
    cipher.init(Cipher.UNWRAP_MODE, privateKey);
    Key key = cipher.unwrap(wrappedKey, "AES", Cipher.SECRET_KEY);Here is the class that is serialized:
    import java.io.Serializable;
    public class TransportObject implements Serializable {
        private static final long serialVersionUID = 5044061539587999682L;
        private byte[] key;
        private String type;
        private byte[] data;
        public static final int STRING = 1;
        public static final int INT = 2;
        public static final int CHAR = 3;
        public TransportObject() {}
        public TransportObject(byte[] key, String type, byte[] data) {
            this.key = key;
            this.type = type;
            this.data = data;
        public byte[] getKey() {
            return key;
        public void setKey(byte[] key) {
            this.key = key;
    }Sending is done via:
    TransportObject obj = rsa.encrypt(objectToSend, keys.getPublicKey());
    ObjectOutputStream os =
        new ObjectOutputStream(socket.getOutputStream());
    os.writeObject(obj);
    os.flush();Receiving via
    ois = new ObjectInputStream(
        new BufferedInputStream(socket.getInputStream()));
    TransportObject obj = (TransportObject) ois.readObject();
    Object receivedObject = rsa.decrypt(obj, keys.getPrivateKey());Somehow, I hang down here.
    Do I overlook something? Do I have an error in reasoning?
    Thanks for any help!
    Best regards
    Sebastian Gohres
    Edited by: Spencer82 on Aug 7, 2010 9:06 AM
    Edited by: Spencer82 on Aug 7, 2010 9:08 AM

    Do I overlook something? Do I have an error in reasoning?I think at least 2.
    1. Don't do this. The general problem has been solved. The solution is called TLS, and Java provides a API called the JSSE for you to use.
    2.If you insist on rolling your own, don't specify NoPadding. Use PKCS1Padding. If you are going to use NoPadding, then you must provide your own padding scheme, which you have not.

  • I have a problem with HP ToolboxFX and the encountered an error and can not recover error msg.

    Restarting the software and/or the computer do not fix the error.  I have installed the new firmware in my CP2025dn Color Laser it now has version 20110212 firmware.  The error msg reports: windows version Win32NT-6.0.6002.131072 and HP Toolbox FX version 004.012.00146.  I am running the printer on my wireless router.  My computer is a Dell Studio with Vista Home Premium Service Pack 2 - 64 bit OS.  My wife's older laptop with WIN XP is not having a problem with Toolbox.  I have uninstalled and reinstalled Toolbox on my computer today also.  Where do I look next?  Thank you!!!

    Hi
    Please find the link given below might help you to fix your issue.
    Link
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • Problem with lenovo t60 and the vga output

    I have a problem with the vga output and the lenovo t60
    When i put the videoprojector connector in to the lenovo t 60, the projector reponde is:
    Not supported
    H: 48.20khz   v: 143,10 hz
     On my desktop pc the projector function on 1024x768 resolution and the 60 hz to refresh.
    The same configurations are on my laptop and the projector doesn't function
    Please help me.

    I too have this problem. My T61 worked fine for about a year, and then suddenly would no longer project. I had made no changes to the settings for the external display, though since the problem started I've tried many combinations without success. Typically the projector reports that the frequency settings the laptop is sending are unsupported. In my case the vertical rate is usually correct (60 Hz) but the horizontal rate varies wildly.
    I suspect a hardware problem, as this post suggests: http://www.edugeek.net/forums/av-multimedia-relate​d/32128-laptop-wont-display-projector.html. (Note the message claiming that 6 out of 40 Lenovo laptops exhibited this problem.)
    Since my system is still under warranty I guess I'll have to get it repaired, but I'd rather hear of a software fix...

  • Problem with combo boxes and the reset button in certain situations

    Hi Everyone,
    i have a problem to make the reset-button function properly in an what-if analysis dashboard.
    The dashboard uses two combo boxes that are not visible at the same time. In my application the second combo box only appears when a dedicated menu (label based menu button) has been activated.
    So i have combo box 1 when menu A is active an dand combo box 2 when menu 2 is active.
    After starting the dashboard initial values are fine. If you then directly change to menu 2 (seeing combo box 2 with
    the correct default value) and press the reset button, the dashboard returns to the initial view, showing
    the menu 1 with the correct default value. If you now switch back  to menu 2, you will see, that the combo box 2
    is empty (i.e. nothing selected).
    I also tracked the destination cells for the combo box value results as well as the source cells for the "selected item" and the
    destination cells for the "Insert Selected Item". All this values seem to be correct. Therefore i assume that
    this is an issue of event handling. Maybe the combo box 2 does not refresh its selected value because it is already
    invisible when the values are restored.
    This case can easily be simulated by placing two combo boxes and a push button (that changes the visibility of
    the combo boxes) and the reset button on the canvas.
    Maybe someone can help. I am able to provide a test xlf, if neccessary.
    Thanks,
    Oliver
    P.S. I am using Xcelsius SP4 (Version 5.4.0.0)

    Hello Debjit_Singha_86,
    thank you for your support. At the moment i have the following setting:
    label based menu
    - General: Insertion Type "value" from a list of ID's for the menu-items to a dedicated cell (current menu ID, say tab1!$A$1)
    - Behavior: Selected item (position) fixted to item 1
    hidden combo box
    - General: Insertion Type "position" to a dedicated cell with the current choice (say tab1!$B$1)
    - Behavior: Selected item (position) to the same cell (tab1!$B$1)
    Can you give me a hint on how to connect the two components according to your solution, so that the label based menu sets the default for the hidden combox box only in case, that the reset button is pressed?
    Thanks,
    Oliver

Maybe you are looking for

  • How to delete the open requests in the LBWQ

    Hi guys ... Can any one let me know how to delete / update the open requests in the queue . I need to delete the Open requests in the LBWQ...we are applying patches and for that we need to delete from LBWQ and RSA7...I guess there is an ABAP report w

  • BODS 3.1 : How to trigger an email alert for the jobs on BODS server ?

    Hi All. I have this request. BODS 3.1 : How to trigger an email alert for the jobs on BODS server ? We have jobs scheduled on BODS running smoothly and absolutely fine. But to check, i am logging into the admin console and check for the jobs status.

  • IPhone4 to Apple TV movie streaming problem

    Movies recorded using my iPhone stream no problem to Apple TV via Airplay but movies that have been downloaded seperately and loaded onto my iPhone and are stored in my iPod part of the iPhone do not have the Airplay icon to allow streaming. Any idea

  • Has anyone else lost all their phone numbers?

    Just checked Contacts while trying to make a phone call and i don't see any of my phone numbers..I had probably 50+ in my contacts list.  What gives?  What do I do now?

  • DOS Tools Return Values

    I am automating some data download/import/updates from one of our data-providers into our db. I am using sqlldr.exe for the load, and sqlplus for the updating (by calling it with a PL/SQL script file on the command line). I am wondering, do these too