【发布时间】:2014-11-24 18:52:11
【问题描述】:
我的数据解析代码解析完成。如何在核心数据中添加该数据
-(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]; [请求 setDelegate:self]; [请求启动异步]; }
-
(void)requestFinished:(ASIHTTPRequest *)request {
NSError *error = [请求错误]; NSString *responseString = nil;
如果(!错误) { 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。 -
我肯定会得到 Paint Code 这样的东西。如果你还不是瘾君子,paintcodeapp.com。我是唯一的飞行方式 - 做一次,永远不要再做
标签: ios objective-c autolayout