I get many crash logs from my mac app as below:
Application Specific Information:
assertion failure: "(self)->_enumeratingSubviewsCount < ((1 << 6) - 1)" -> %lld
I know literal meaning when a super view have subviews more than 2 to the 6th power, which is 128.
However, when I make a test app, which addSuviews to 200. But it doesn't crash. The test demo code show below
for (int i = 0; i < 200; i++) {
NSView *view = [[NSView alloc] initWithFrame:NSMakeRect(0, 0, 20, 20)];
[self.window.contentView addSubview:view];
}
Anybody know how to fix this problem. Thanks.
Application Specific Information:
assertion failure: "(self)->_enumeratingSubviewsCount < ((1 << 6) - 1)" -> %lld
I know literal meaning when a super view have subviews more than 2 to the 6th power, which is 128.
However, when I make a test app, which addSuviews to 200. But it doesn't crash. The test demo code show below
for (int i = 0; i < 200; i++) {
NSView *view = [[NSView alloc] initWithFrame:NSMakeRect(0, 0, 20, 20)];
[self.window.contentView addSubview:view];
}
Anybody know how to fix this problem. Thanks.