You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I am working with this Library working Great But i need delete a particular row like after long press for that I am using Gestures below is my Gesture method
CGPoint p = [gestureRecognizer locationInView:self.tableView];
NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:p];
id message = self.conversation[indexPath.section][indexPath.row];
int index = (int)[[self messages] indexOfObject:message];
it is showing currenct index value but getting error like beyond the bounds exception. I thing it is problem with the section and rows in soMessaging but I am unable to delete that row can any body help me please
The text was updated successfully, but these errors were encountered:
Beacause of the sections. In that table not showing exact indexpth.row value so i am using above code it is showing exact indexpath. I am able to delete in sqlite.But getting error like beyond the bounds exception.
The exception beyond the bounds exception is occur when you try to access the index of array which is not present in array. For example an array contain 5 objects and you try to access the 5th index.
And i think when you delete from sqlite then you are removing it from your message array too. That is why this error occur.
Hi I am working with this Library working Great But i need delete a particular row like after long press for that I am using Gestures below is my Gesture method
CGPoint p = [gestureRecognizer locationInView:self.tableView];
NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:p];
id message = self.conversation[indexPath.section][indexPath.row];
int index = (int)[[self messages] indexOfObject:message];
it is showing currenct index value but getting error like beyond the bounds exception. I thing it is problem with the section and rows in soMessaging but I am unable to delete that row can any body help me please
The text was updated successfully, but these errors were encountered: