Im downloading data from web and inserting the downloaded data into sqlite database. Now what i want is the data which is inserting into the database that should happen in background while downloading also the user can do other things on the view. So is that possible u isert data into sqlite in the background process.
im using this but the application crashes on using this.
NSNumber *number = [NSNumber numberWithInteger:1];
NSOperationQueue *queue = [NSOperationQueue new];
NSInvocationOperation *operation = [[NSInvocationOperation alloc] initWithTarget:self
selector:@selector(InsertIntodatabase)
object:number];
[queue addOperation:operation];
[operation release];
Thanks in advance