PDA

View Full Version : Undeclared Error and iPhone Simulator Crashing




stangmmx
Jun 6, 2011, 09:07 PM
Here is my code from a simple test app I'm practicing with. (http://www.iphonedevbook.com/forum/chapter-4-more-user-interface-fun/4646-undeclared-error-iphone-simulator-crashing.html)

I'm using the beginner's iPhone dev book, and it's good, don't get me wrong, it's just sometimes there are errors with the code. Anywho, could anyone help me out with this one?

I'm a complete novice so, it's probably a simple fix. Thanks.



jnoxx
Jun 7, 2011, 03:12 AM
As far as I know, there is no problem with the code, but a problem with your NIB file? (XIB in other words.)
Any chance u made a mistake there, with outlets etc.

dejo
Jun 7, 2011, 09:02 AM
I'm using the beginner's iPhone dev book...
Accuracy is important when programming, as well as when seeking help for programming. What is the exact title of the book? Also, it usually helps to include the author and edition.

stangmmx
Jun 7, 2011, 12:02 PM
Accuracy is important when programming, as well as when seeking help for programming. What is the exact title of the book? Also, it usually helps to include the author and edition.

Here's the text I am using. (http://www.amazon.com/dp/143023024X?tag=mobiledevbook-20&camp=14573&creative=327641&linkCode=as1&creativeASIN=143023024X&adid=11E5JBR75DVA5X7QQTNJ&)

dejo
Jun 7, 2011, 12:17 PM
...it's just sometimes there are errors with the code.

Books aren't perfect either. But, if you think you've followed directions to a tee, and it still doesn't work, first place I would check is the book (http://www.apress.com/9781430230243)'s errata. Plus, this book has its own website (http://iphonedevbook.com/) with forums (http://www.iphonedevbook.com/forum/forum.php) that are very helpful and visited by at least one of the authors where you can also get help on errors you find.

stangmmx
Jun 7, 2011, 12:22 PM
As far as I know, there is no problem with the code, but a problem with your NIB file? (XIB in other words.)
Any chance u made a mistake there, with outlets etc.

You're right. I was being a bit careless with my NIB file. Thanks for looking over my code though.

Books aren't perfect either. But, if you think you've followed directions to a tee, and it still doesn't work, first place I would check is the book (http://www.apress.com/9781430230243)'s errata. Plus, this book has its own website (http://iphonedevbook.com/) with forums (http://www.iphonedevbook.com/forum/forum.php) that are very helpful and visited by at least one of the authors where you can also get help on errors you find.

Yes. The link in my original post is a link to a post I made in the author's/books forums. It's just not a very active forums. Appreciate the help

dejo
Jun 7, 2011, 12:31 PM
Yes. The link in my original post is a link to a post I made in the author's/books forums. It's just not a very active forums. Appreciate the help

Oops, sorry. Hadn't noticed that. My apologies.