This my data parsing code parsing is done.how to add that data in core data
-(void)DataRetireve { deatilinfoarray = [[NSMutableArray alloc] init]; NSURL *url = [NSURL URLWithString: @"http://sms.instatalkcommunications.com/apireq/GetSMSCategories?t=1&h=admin¶m=1"]; ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request setDelegate:self]; [request startAsynchronous]; }
(void)requestFinished:(ASIHTTPRequest *)request {
NSError *error = [request error]; NSString *responseString = nil;
if (!error) { responseString = [request responseString];
SBJsonParser *parser = [[SBJsonParser alloc] init] ; NSMutableArray *jsondata = [parser objectWithString:responseString]; NSMutableArray *jsondata1 = [[NSMutableArray alloc]init]; for(int i=0;i<jsondata.count;i++) { info *myinfo=[[info alloc]init]; myinfo.Id=@"Id"; myinfo.Name=@"Name"; myinfo.IsActive=@"IsActive"; [jsondata1 addObject:myinfo]; NSLog(@"%@",responseString); } for(int i=0;i<jsondata1.count;i++) { info *myinfo= [jsondata1 objectAtIndex:i]; [jsondata1 addObject:myinfo]; }
UICollectionView
in these cases. – DeFrenZ