Hey Team,
if (self.selectedIndex==-1)
{
NSIndexPath *prev = [NSIndexPath indexPathForRow:self.selectedIndex inSection:0];
self.selectedIndex=indexPath.row;
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:prev] withRowAnimation:UITableViewRowAnimationFade];
}
Now, this below code gave me a crash in iOS 14 & iOS 15. But it is working fine with iOS 13. Could you please provide me with an alternate of this?
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:prev] withRowAnimation:UITableViewRowAnimationFade];
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Created
Hey Team,
I was doing testing after updated Xcode 13.
While running the application it got crashed, I saw the logs in the terminal. please refer to it below.
"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Passing argument that is not a CGColor to +[UIColor colorWithCGColor:]'
terminating with uncaught exception of type NSException"
NOTE: I have not applied any code color in the code.