Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-14-2010, 07:03 AM   #1 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 109
raheel is on a distinguished road
Default Sequence of UI Events / Methods (Step by Step)

Hey,

I am having conflict of UIEvent and SQLite method called in the background thread via NSOperation.

UIAnimation is simple enough. Its moving a tableView, Pulling up the Keyboard (via beginResponder). All happening simultaneously and thats how I liked it. But Also a method is called via NSOperation that queries sqlite and reloads tableView in mainthread.

The problem occurs when tableView is scrolling and new data is added and I get the error : NSRangeException. index beyond bounds. and error report has references to updateVisibleCells.

To solve this I thought I would make everything happen step by step
1- Move TableView - UIAnimation
2- If the data is ready and If the tableView is scrolling Stop Scrolling programmatically and then Reload table.


All this not concurrently but one after the other.

WHat is the best possible way I can do this?
raheel is offline   Reply With Quote
Reply

Bookmarks

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 333
17 members and 316 guests
appservice, bignoggins, cayladv57, dermotos, Domele, EXOPTENDAELAX, guusleijsten, Hamad, heshiming, linkmx, Objective Zero, Paul Slocum, Rudy, Sloshmonster, teebee74, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,654
Threads: 94,115
Posts: 402,888
Top Poster: BrianSlick (7,990)
Welcome to our newest member, cayladv57
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:49 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0