开发者

iOS iPhone shows nothing when run

so I followed the tutorial at

http://icodeblog.com/2008/08/08/iphone-programming-tutorial-populating-uitableview-with-an-nsarray/

It compiles and run successfully but it only shows Fruits at the top and no items.

Same thing happened when I followed another tutorial. Does anyone know how to fix this or what the proble开发者_JS百科m is?


brute force:

run the code in the debugger with breakpoints on the entry and exit of every function learn what it's doing and see where it's failing. (At least on all the functions that display data or build data to be displayed)

optionally (since the code you linked to is 2 years (and 2 OS versions) old):

pick the sample code from apple that does the same thing (sorry, I don't know which one off the top of my head)


Did you perhaps miss some code in the applicationDidFinishLaunching block in the example at the link provided?

Or perhaps didn't link the FruitViewController to the view?


So I dont think it has to do with the guide. It has to do with some settings maybe? Somehow the xcode is not connecting to the iPhone simulator?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜