views:

58

answers:

1

Hi, im trying to write an app that will display a list off lines from a book e.g line 1, line 2 in a table view and you can then select a line to view the corrosponding text.

I've got to the stage where the text should at least appear in the table view(not as far as being able to select it), yet it remains empty.

I used the debugger and was able to find out that there are zero objects in the array used to determine the 'numberOfRowsInSection' and being as this returns zero I think this may explain the problem?

I have pasted up all my code and would really appreciate it if someone has time to skim through it. I know its a big thing to ask but I cant seem to pin point the problem myself.

SOURCE : http://uploading.com/files/9f5f1249/BookTest.zip/

Thanks guys,

+1  A: 

Your sample sqlite database doesn't have table named "animals". But it has table "book". I think you should correct your readLinesFromDatabase method with following SQL statement: select * from book. ;-)

Roman Busyghin
Thank you so much :) I spend all day trying to figure this out so I really appreciate you looking at this. The animals part was off a tutorial I was trying to build off of :)Really appreciate it :)
Dave