1
-(void)dataManagerDidFinishLoading:(DataManager *)datamgr
{
NSLog(@"%@.....",datamgr);
pageArray=[datamgr.resultDataDictionary objectForKey:@"POS_GetPageResult"];
GetPage *page=(GetPage *)[NSEntityDescription
insertNewObjectForEntityForName:@"GetPage"
inManagedObjectContext:managedObjectContext];
NSError *error;
if (![managedObjectContext save:&error]) {
// This is a serious error saying the record could not be saved.
// Advise the user to restart the application
NSLog(@"Error........");
}
[pageArray insertObject:page atIndex:0];
}