Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Figo.Yang

macrumors newbie
Original poster
May 18, 2008
4
0
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.
 

kevinrichardsuk

macrumors member
May 19, 2008
30
0
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.
 

Figo.Yang

macrumors newbie
Original poster
May 18, 2008
4
0
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.

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.
 

kevinrichardsuk

macrumors member
May 19, 2008
30
0
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.