Start iPhone Dev, view shown error.

Discussion in 'Mac Programming' started by Figo.Yang, May 18, 2008.

  1. Figo.Yang macrumors newbie

    Joined:
    May 18, 2008
    #1
    Hi All.
    I want to run a HelloWorldClassic sample. [http://developer.apple.com/iphone/samples/index.action]

    I can build it well.
    When I run it in the simulator, the view is OK (with a earth map shown) at the beginning. But 1 or 2 seconds later, the view is empty.

    Then I check that there is a warning "warning: no '-initWithNibName:bundle' method found" when building the project.

    Samples with xib file defined view are the same case. Other samples are OK.

    I don't know whether the xib file is no attached with the UIViewController.
    I'm a fresh one on Mac.

    I installed:
    iPhone SDK 2.0 sdk
    xCode version 3.1(Beta)
    IB version 3.1(649)

    I don't how to fix this problem. Any help is good help.
     
  2. kevinrichardsuk macrumors member

    Joined:
    May 19, 2008
    #2
    I had a problem like this; are you running the latest beta release of the SDK?

    I fixed my problem by downloading the latest SDK and also the latest example code, as both the sample code and SDK is updated to work with eachother. I had the new SDK and an old example code.
     
  3. Figo.Yang thread starter macrumors newbie

    Joined:
    May 18, 2008
    #3
    Thank you kevinrichardsuk.
    Can I find different versions of example code now?
    As you said, if I download the suit example code, it will be OK then.
     
  4. kevinrichardsuk macrumors member

    Joined:
    May 19, 2008
    #4
    The sample code on Apple's site is updated when the new SDK is released, you may be trying to run an old sample code with a new SDK.. some old examples are not compatible with the new SDK and vice versa.

    Download the latest SDK and sample from the Apple site, they work fine together.
     
  5. Figo.Yang thread starter macrumors newbie

    Joined:
    May 18, 2008
    #5
    Thank you

    Kevinrichardsuk, thank you so much!
     

Share This Page