my .h file
my .m file

Code:
@property (nonatomic,strong) NSString *University;
@property (nonatomic,strong) NSString *FirstName;
@property NSNumber *VC_1;
@end
Code:
-(void)Down_Load_Data
{
NSString *urlString = [NSString stringWithFormat:@"http://127.0.0.1/DownLoadDataModule_1.php"];
NSURL *url =[NSURL URLWithString:urlString];
NSData *data = [NSData dataWithContentsOfURL:url];
NSError *error;
NSMutableDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error];
NSLog(@"%@",json);
NSArray *jsonArry = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error];
for (NSDictionary *dict in jsonArry) {
// How do I get the Values from my DataBase into my Properties ????
// I am at a total lost, I see my values in the NSLog with no problem, but I have no ideal on how to UpDate my Properties Values
// RIGHT BELOW
NSLog(@"%@,%@,%@", [dict objectForKey:@"University"],[dict objectForKey:@"FirstName"],[dict objectForKey:@"VC_1"]);
if ([University isEqualToString: @"UCDMedical"])
{
NSLog(@"First Name %@",FirstName);
NSLog(@"VC_1 %@",VC_1);
}
}
}
Last edited by a moderator: