Skip to content

Fix insertObjectAtIndex: can not increase old view's tag issue#90

Open
vagase wants to merge 1 commit into
gmoledina:masterfrom
vagase:master
Open

Fix insertObjectAtIndex: can not increase old view's tag issue#90
vagase wants to merge 1 commit into
gmoledina:masterfrom
vagase:master

Conversation

@vagase
Copy link
Copy Markdown

@vagase vagase commented May 6, 2012

Move routine out of if scope:

    for (int i = _numberTotalItems - 1; i >= index; i--)
    {
        UIView *oldView = [self cellForItemAtIndex:i];
        oldView.tag = oldView.tag + 1;
    }

Referenced issue:
#89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant