Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Fix crash when switch the data source #138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 19, 2016

  1. Fix crash when switch the data source

    crash steps:
    1. set the ViewPagerController’s data source, total count is 10;
    2. select the active page as 9;
    3, i want to change the data source to another pages, total count maybe
    is 5. So i call ViewPagerController reloadData.
    4. ViewPagerController crash
    
    Root Cause is self.activeContentIndex is still 9,  NSArray cash when
    call [self.contents replaceObjectAtIndex:index withObject:[NSNull null]]
    shezhiqiang committed Feb 19, 2016
    Configuration menu
    Copy the full SHA
    e3ae5a6 View commit details
    Browse the repository at this point in the history