NimbleKit - fast iOS app development

TableView bindToDataBase bug?

Problem discussions

TableView bindToDataBase bug?

Postby spjnowak » Mon Oct 11, 2010 3:39 pm

I'm building a universal app and found that my Table View would not build on the iPhone 3G and 3GS although it was OK on the iPhone4 and iPad. I was using the insertRecord method to build the table and concluded that it was a combination of memory size and processor speed that was preventing the whole table being built as it worked on the simulator. As the Table View had 94 elements this was not too surprising. So I changed to using the bindToDataBase method and prebuilt the Table View data in my database table. This worked on all devices, although curiously the iPhone simulator would only ever show 12 records.

My suspected bug, however, is more unusual. I noticed that when the app was run for a second time some elements on the list had not been loaded. On an iOS4 device it's necessary to quit the app completely from the task bar then restart to reproduce it so I missed the problem for a while. Eventually I realised that the problem only occurs with elements containing text with single-quote characters in the sub-title. That's the only place that I have such text so it may occur in the title and categories as well.

Why should the Table View load successfully first time around but not subsequently? Is this a Nimblekit problem or SQLite or iOS?

I'm ready to submit the app to Apple so any help would be much appreciated!

Stefan
spjnowak
NimbleKit Expert
 
Posts: 25
Joined: Sun Jun 27, 2010 5:57 pm

Re: TableView bindToDataBase bug?

Postby sunny » Tue Oct 12, 2010 5:20 pm

yeah, really sounds like a NimbleKit bug, please report it with steps to reproduce in the bug tracker and it will be fixed in the next release
User avatar
sunny
Staff
 
Posts: 2666
Joined: Sat May 30, 2009 5:18 am
Location: Palo Alto, California

Re: TableView bindToDataBase bug?

Postby spjnowak » Wed Oct 13, 2010 12:04 pm

Thanks, Sunny. Reported as bug 271.

A quick fix would be much appreciated as this is holding up my submission to Apple.
spjnowak
NimbleKit Expert
 
Posts: 25
Joined: Sun Jun 27, 2010 5:57 pm

Re: TableView bindToDataBase bug?

Postby spjnowak » Wed Oct 20, 2010 8:18 pm

Any news on fixing this, Sunny?
spjnowak
NimbleKit Expert
 
Posts: 25
Joined: Sun Jun 27, 2010 5:57 pm

Re: TableView bindToDataBase bug?

Postby sunny » Fri Oct 22, 2010 2:52 am

it is fixed, I'm preparing the release, there are some minor issues on iPad due to adding new UI elements, but I'll figure it out
User avatar
sunny
Staff
 
Posts: 2666
Joined: Sat May 30, 2009 5:18 am
Location: Palo Alto, California

Re: TableView bindToDataBase bug?

Postby spjnowak » Fri Oct 22, 2010 3:20 pm

Good news, Sunny, thanks. Look forward to the next release!
spjnowak
NimbleKit Expert
 
Posts: 25
Joined: Sun Jun 27, 2010 5:57 pm

Re: TableView bindToDataBase bug?

Postby gmaendel » Sat Jul 28, 2012 5:48 am

did you ever get this working correctly? I'm having the same problem with bindToDataBase().
it doesn't load my SQLite Entries after I quit the app.

Please help!!
gmaendel
 
Posts: 17
Joined: Fri Mar 02, 2012 5:38 pm


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 1 guest