p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional iPhone and iPad Database Application Programming (http://p2p.wrox.com/forumdisplay.php?f=603)
-   -   Chapter 2 page 52 index beyond bounds error (http://p2p.wrox.com/showthread.php?t=88333)

bubba hawk August 28th, 2012 02:43 PM

Chapter 2 page 52 index beyond bounds error
 
Hello: When Running Catalog project on page 52, I get an index beyond bounds error. I added a bunch of logs and it appears to complete the getAllProducts method. Then it completes the viewDidLoad. Then it completes numberOfRowsInSection (with count = 21). Then it throws an error seen below - I'm have not been able to find source of this error. Any help is greatly appreciated. Thanks, Hawk[:(]

Quote:

2012-08-28 14:30:18.616 Catalog[521:f803] Getting Products8
2012-08-28 14:30:18.617 Catalog[521:f803] Getting Products9
2012-08-28 14:30:18.618 Catalog[521:f803] Master View2
2012-08-28 14:30:18.618 Catalog[521:f803] Master View3
2012-08-28 14:30:18.619 Catalog[521:f803] Master View4
2012-08-28 14:30:18.621 Catalog[521:f803] Rows In Section1
2012-08-28 14:30:18.622 Catalog[521:f803] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]'
*** First throw call stack:
(0x1588052 0x1719d0a 0x1574674 0x4f6805 0x30627a 0x2b1548...

thepianoguy September 6th, 2012 07:56 AM

Rather than speculate, if you send your code to
ipadhelper@me.com

I should be able to track down the issue.

Bob


All times are GMT -4. The time now is 05:00 AM.

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