Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Beginning iPhone SDK Programming with Objective-C
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning iPhone SDK Programming with Objective-C
This is the forum to discuss the Wrox book Beginning iPhone SDK Programming with Objective-C by Wei-Meng Lee; ISBN: 978-0-470-50097-2
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning iPhone SDK Programming with Objective-C section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 11th, 2011, 12:15 PM
Registered User
Points: 17, Level: 1
Points: 17, Level: 1 Points: 17, Level: 1 Points: 17, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Location: Maryland, USA
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Ch.7 Switching to another view p.176-177

I am trying to finish a Window-based application p.176-177 and it does not go (overdone it twice already). Programmatically created mySecondViewController loads with a button and a label views in it. When I press the button - the app crashes with the console message "Terminating app due to uncaught exception NSInternalInconsistencyException. Reason: could not load NIB in bundle".
Can anybody help?

Last edited by solg; May 11th, 2011 at 12:31 PM. Reason: added icon
  #2 (permalink)  
Old May 11th, 2011, 02:11 PM
Friend of Wrox
Points: 1,671, Level: 16
Points: 1,671, Level: 16 Points: 1,671, Level: 16 Points: 1,671, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts
Default

Which version of Xcode are you using?
It will be easier to diagnose with the actual project. If you wish you can send it to
ipadhelper@me.com
and I will check it out.

Bob
  #3 (permalink)  
Old May 11th, 2011, 02:28 PM
Registered User
Points: 17, Level: 1
Points: 17, Level: 1 Points: 17, Level: 1 Points: 17, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Location: Maryland, USA
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank a lot for offering your help! For sure I will need it later.
I was able to figure out what caused the problem. While manually creating MyViewController I gave it a NIB name. When instantiating that view controller in the buttonClicked method I had to use the same NIB name in initWithNibName:@" ". I typed a different name and it caused the problem described.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6 - Pg 177 Statistical Analysis luciomcervantes@yahoo.com BOOK: Beginning Mac OS X Programming 1 January 31st, 2011 12:49 AM
CH 10 Updatepanel - Design view RobertVL ASP.NET 3.5 Basics 2 July 6th, 2008 06:13 AM
Switching problem between view and dialog attached lmadhavi Visual C++ 0 September 21st, 2004 07:14 AM
Ch 3 p72 "View XSL Output" Justin Abbott XSLT 3 July 15th, 2003 02:25 PM



All times are GMT -4. The time now is 09:23 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.