sind immer die 3 Fehler für diesenAnzeigen von Bildern von JSON URL in Tableview
1) " [__NSCFString size]: unrecognized selector sent to instance "
2) " [NSNull length]: unrecognized selector sent to instance "
3) " [__NSCFString size]: unrecognized selector sent to instance "
unter meinem Code. Könnten Sie mir bitte helfen, dieses Thema zu lieben?
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection: (NSInteger)section {
return matchesProfileArr.count;;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
displayCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier
forIndexPath:indexPath];
if(!cell) {
cell = [[displayCell alloc] initWithStyle:UITableViewCellStyleDefault
reuseIdentifier:CellIdentifier];
}
NSMutableDictionary *dict= [matchesProfileArr objectAtIndex:indexPath.row];
NSMutableDictionary *dictdetails=[dict objectForKey:@"ABSAdvancedSearch"];
cell.lblAge.text = [dictdetails objectForKey:@"age"];
cell.lblLocation.text = [dictdetails objectForKey:@"CustomerCity"];
cell.lblProfession.text = [dictdetails objectForKey:@"rb_profession_title"];
cell.lblEducation.text = [dictdetails objectForKey:@"rb_education_title"];
cell.lblFullName.text = [dictdetails objectForKey:@"Username"];
cell.profileImage.image = [dictdetails objectForKey:@"profile_pic"];
return cell;
}
glaube ich matchesProfileArr Array null zu prüfen ist, ob seine Null oder nicht –
, was diese Codezeile Sie Rückkehr [dictdetails objectForKey: @ „profile_pic“]; – Alok
willst du Bild von URL anzeigen? –