Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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
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
 
Old May 11th, 2011, 02:11 PM
Friend of Wrox
 
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
 
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
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.





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 01: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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.