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

DNA - FINAL #223

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

DNA - FINAL #223

wants to merge 2 commits into from

Conversation

koteus
Copy link

@koteus koteus commented Nov 5, 2012

Mission complete

FINAL

Initial commit of project files
while ([changedPositions containsObject:[NSNumber numberWithInt: position]]) {
position = arc4random() % maxItemsNumber;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

У вас, похоже, массив changedPositions инициализируется пустой, видимо, надо initWithCapacity:maxItemsNumber. А в цикле while добавлять к нему элементы с индексом position. Иначе получается, что в цикл while никогда не будет ни одного вхождения, потому как в нем нет элементов.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, вы правы )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants