I am getting data from Webservice call. When I am getting the data from server first time UITableView
cells data is good, but when I scroll table view then data is recreated.
What is the Solution for this?
check if cell is nil, as following
static NSString *CellIdentifier = @"id";
YourCreatedCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if(cell == nil){
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"YourCreatedCell" owner:self options:nil];
cell = [nib objectAtIndex:0];
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.