iphone - NSFastEnumerationMutationHandler crash -



iphone - NSFastEnumerationMutationHandler crash -

could perchance help me here, why getting nsfastenumerationmutationhandler crash of sudden in code. blank why crash poped of sudden , how crush one.

thanks.

you must trying alter array while using fast enumeration.

example

for ( id anobject in anarray ) { if ( /* anobject satisfies status */ ) { [anarray removeobject:anobject]; } }

that shouldn't done. utilize different array or filteredarrayusingpredicate: method filter. remedy, however, depends on you're trying do.

iphone crash

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -