I have a json array with specific objects: first name, last name, unique identifier. I can parse them and save them in a dictionary, and also check them for NULL conditions.
I created a table in which I can display the names. In addition, I have one button on each line, and I marked them. I want that when I click the button, I can see the unique identifier retrieved from the server in my console. I need to pass this unique identifier into the following form, since using this unique identifier will help me display the view corresponding to this id on the server.
Click here to see what I have done so far.
I made some changes by adding this to my viewDidLoad method:
for(NSDictionary *items in infos)
{
....
....
for(int i =0; i < len; i++)
{
...
...
...
for(NSDictionary *newItems in infoArray)
{
...
...
NSString *folks_IdRcv = [[items objectForKey:strr]objectForKey:@"folks_id"];
NSLog(@"FolksID = %@", folks_IdRcv);
NSString *folksIDString = [NSString stringWithFormat:@"%@", folks_IdRcv, nil];
NSLog(@"folkid_display=%@", folksIDString);
if((fName && lName && email_Id && number_id) && displayName && folksIDString != NULL)
{
...
...
[folksIDArray insertObject:folksIDString atIndex:ii];
NSLog(@"FolksID String Name = %@", [folksIDArray objectAtIndex:(ii)]);
ii++;
}
}
}
}
NSMutableArray *nArray = [[NSMutableArray alloc]initWithCapacity:len];
for(int j =0; j<len ;j++)
{
...
...
[nArray addObject:[folksIDArray objectAtIndex:j]];
NSLog(@"FID Element=%@", nArray);
}
self.infos = mArray;
[super viewDidLoad];
}
:
FID Element=(
400386528950544,
162622322666106,
643171434889706
)
, , . , , , , .
, .