objective-c - ios 时间选择器的崩溃错误
大家讲道理
大家讲道理 2017-04-17 18:00:38
0
1
368

如题
Failed to allocate data stores for 10000 rows in section 0
这是崩溃抛出来的

具体指向
NSDate *maxDate = [[NSDate alloc] initWithTimeIntervalSinceNow:60 (这里有一个乘号被省略了) 60];
这一句 这是为什么 求解答

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
PHPzhong

NSDate *maxDate = [[NSDate alloc]...,这句话是没有问题的。
Failed to allocate data stores for 10000 rows in section 0,
This problem is very strange. Is it because there is a problem with your even time range, causing the set maximum number of rows to be too large, and then Apple's DatePicker crashes.
Or, is it possible that the problem is caused by incorrectly setting the DatePicker multiple times somewhere, because this bug is rare.
Alternatively, sometimes, weird problems occur when setting up UI classes using non-main threads.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template