Thursday, 22 August 2013

Why is __strong required in ARC

Why is __strong required in ARC

When I do something simialr to the following I get an error saying
for (UIView* att in bottomAttachments) {
if (i <= [cells count]) {
att = [[UIView alloc] extraStuff]
}
}
Fast Enumeration variables cannot be modified in ARC: declare __strong
What does __strong do and why must I add it?

No comments:

Post a Comment