Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional iPhone and iPad Application Development
This is the forum to discuss the Wrox book Professional iPhone and iPad Application Development by Gene Backlin; ISBN: 978-0-470-87819-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional iPhone and iPad Application Development 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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 28th, 2011, 08:48 PM
Registered User
Points: 34, Level: 1
Points: 34, Level: 1 Points: 34, Level: 1 Points: 34, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 2: Displaying the Catalog

When running this step I get 'Problem with the database'

sqlResult is 1

However, am able to run the sql successfully in SQLite Manager.

How do I track down the problem with excuting the sql?
'
Reply With Quote
  #2 (permalink)  
Old May 29th, 2011, 12:09 PM
Wrox Author
Points: 362, Level: 6
Points: 362, Level: 6 Points: 362, Level: 6 Points: 362, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2010
Posts: 61
Thanks: 0
Thanked 9 Times in 7 Posts
Default

Quote:
Originally Posted by spcalia View Post
When running this step I get 'Problem with the database'

sqlResult is 1

However, am able to run the sql successfully in SQLite Manager.

How do I track down the problem with excuting the sql?
'
I believe you are referring to this book, as my Chapter 2 is on Alerts, Action Sheets and Modal Views:

http://p2p.wrox.com/book-professiona...ogramming-603/

However since you stopped by. If I were you, I would try to do a build - clean on your project and in the simulator delete the app by click and hold till the icons start to wiggle and an (X) appears. Click on the (X) to remove the app, quit the simulator and re-run from Xcode again.

What version of Xcode do you have installed and what SDK ?
Reply With Quote
  #3 (permalink)  
Old May 29th, 2011, 06:27 PM
Registered User
Points: 34, Level: 1
Points: 34, Level: 1 Points: 34, Level: 1 Points: 34, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I did a clean build and deleted the app in the simulator, but get the same result.

console output is:

2011-05-29 14:24:00.817 Catalog[3025:207] Opening Database
2011-05-29 14:24:00.820 Catalog[3025:207] Problem with the database:
2011-05-29 14:24:00.820 Catalog[3025:207] sqlResult is 1

I am using ios 4.3 iPhone simulator. What should I be using?
Reply With Quote
  #4 (permalink)  
Old May 29th, 2011, 11:39 PM
Registered User
Points: 34, Level: 1
Points: 34, Level: 1 Points: 34, Level: 1 Points: 34, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default working now

re-did the chapter from scratch.

Drilled the basics in my head.

Displaying properly now.

Yeh!!
Reply With Quote
Reply


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 7 Image not displaying jfraymondpa BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 March 12th, 2011 06:24 PM
Chapter 8 problem displaying sidebar shilohcoder BOOK: Beginning ASP.NET 4 : in C# and VB 6 February 19th, 2011 07:50 PM
Chapter 4:Displaying the reviews p.126-128 drgnhiker BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 6 November 6th, 2010 05:04 AM
Chapter 12 Displaying and Updating Data bpl BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 November 25th, 2009 02:32 PM
Chapter 17 - Displaying the dialog box davidd31415 BOOK: Beginning Visual C++ 6 1 September 24th, 2006 05:46 PM



All times are GMT -4. The time now is 12:03 AM.


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