我有一个图像视图,它在我的一个项目中从服务器加载后设置为图像。我看到堆栈跟踪看起来像这样的一些时间崩溃
CoreFoundation 0x344d82a3 __exceptionPreprocess + 163
libobjc.A.dylib 0x3c1bc97f objc_exception_throw + 31
CoreFoundation 0x344d7d85 -[NSException name] + 1
Foundation 0x34d78509 -[NSConcreteMapTable countByEnumeratingWithState:objects:count:] + 57
CoreFoundation 0x34460d39 -[__NSFastEnumerationEnumerator nextObject] + 133
CoreFoundation 0x34433f11 -[NSEnumerator countByEnumeratingWithState:objects:count:] + 49
Foundation 0x34e88093 -[NSISEngine enumerateRows:] + 215
Foundation 0x34e8dfdf -[NSISEngine description] + 123
CoreFoundation 0x34448897 -[NSObject(NSObject) _copyDescription] + 35
CoreFoundation 0x344b92db __CFStringAppendFormatCore + 11139
CoreFoundation 0x34453fa9 CFStringCreateWithFormatAndArguments + 73
CoreFoundation 0x344d8195 +[NSException raise:format:] + 57
Foundation 0x34e8a11f -[NSISEngine minimizeConstantInObjectiveRowWithHead:] + 191
Foundation 0x34e8c759 -[NSISEngine optimize] + 61
Foundation 0x34e8c8af -[NSISEngine withAutomaticOptimizationDisabled:] + 211
UIKit 0x36719c4f -[UIView(UIConstraintBasedLayout) removeConstraints:] + 283
UIKit 0x362f6451 -[UIView(UIConstraintBasedLayout) invalidateIntrinsicContentSize] + 73
UIKit 0x362f4f39 -[UIImageView setImage:] + 381
MyApp 0x000ae369 -[DetailViewController didLoadImage:contextInfo:] (DetailViewController.m:1722)
MyApp 0x00114a45 -[UTImageCache executeRequest:] (UTImageCache.m:296)
Foundation 0x34deee85 __NSThread__main__ + 973
libsystem_c.dylib 0x3c613311 _pthread_start + 309
libsystem_c.dylib 0x3c6131d8 thread_start + 8
崩溃消息是
2013 年 9 月 18 日 04:43:28 PM NSGenericException
*集合在枚举时发生了突变。
我不确定这里有什么问题?自动布局在这里有什么问题吗?
谢谢