Can anyone let me know what the following error means in iOS Objective-C:
Terminating app due to uncaught exception 'NSRangeException', reason: '-[NSCFArray objectAtIndex:]: index (13) beyond bounds (13)'
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It means that your index is not within the valid range for your array. Your array has 13 elements and you are trying to access the 14th element. In C, indexes start at 0, so arrays have indexes that are valid from 0 to length – 1.
This is typically caused by an off by one error.