Reason:. You are accessing an empty array that is trying to access the object in the index.
replace all places as in your code below
[arrMydata objectAtIndex:indexPath.row]
from
//1. Positive index ([anArray objectAtIndex:-NUMBERS]) will crash //2. within the array boundary if([arrMydata count] > 0 && [arrMydata count] > indexPath.row){ shrObj=[arrMydata objectAtIndex:indexPath.row]; } else{ //Array is empty,handle as you needed }
** Here you can see an example without software that will explain this problem. Good luck **
Vijay-Apple-Dev.blogspot.com
source share