I have one Tableview & custom Cell in that. All works fine till fetching JSON data & fit to the cell..
but when i try to scroll the tableview, it suddenly crashes with error msg:
2016-08-22 12:53:27.168 myPro[734:332121] -[UITraitCollection length]: unrecognized selector sent to instance 0x12d658440
2016-08-22 12:53:27.174 myPro[734:332121] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITraitCollection length]: unrecognized selector sent to instance 0x12d658440'
here is my code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
HomePostCell *cell=[tableView dequeueReusableCellWithIdentifier:strIdentifier];
if (cell==nil) {
cell = [[HomePostCell alloc]
initWithStyle:UITableViewCellStyleDefault
reuseIdentifier:strIdentifier];
}
cell.lblUserName.text=@"name";
return cell;
}
