iOS array out of bounds

Source: Internet
Author: User

Array out of bounds is if your subscript total is now 32, and then you execute a method in the next second to be assigned from 50 data, and so on, and you are in the array of the value of 32, 50 of the data has not been requested, often the array out of the collapse information, presumably this

-[__nsarrayi Objectatindex:]: Index beyond bounds [0.. 9] '

The specific solution we usually choose the array to make a judgment into return nil;

Although in most cases it is possible, but how much is not rigorous, if you set an event loop execution of Nstimer and your data is very large, the number of arrays is always changing, on the map of the PIN, you walk side change, It takes a lot of nsarray or Nsmutablearray to do a method extension for that long, instead of [_datasourcearray ObjectAtIndex:indexPath.row].

Here's a way to look from a great god I tried, and it helped me!

iOS array out of bounds

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.