I'm working on app and I used custom tableview cell to dispalay data.when my app runs it gives this warning.
This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release
I have added some breakpoints and looked, which time this comes. in this point it comes(the time I call to the custome table view cell.)
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
AirportTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"identifier"];//in here it comes
ac = [detailArray objectAtIndex:indexPath.row];
cell.airportname.text = ac.airPort;
return cell;
}
I tried with this
dispatch_async(dispatch_get_main_queue(), ^{
// code here
});
but I don't know how to use it in proper way. is there any way to avoid this.hope your answers.thanx