在iOS中使用UIDatePicker发生奇怪泄漏

时间:2012-10-26 15:26:34

标签: ios instruments

我的App中有UIDeviceRGBColor漏洞。

UIKIt似乎有问题。

以下是问题:

enter image description here

泄漏位于棕色中提到的代码中:

enter image description here

有没有人遇到过这个问题?

1 个答案:

答案 0 :(得分:0)

是的,我遇到了同样的问题......

设备上的iOS 6.0,但我的漏洞:

[pickerDate setDatePickerMode:UIDatePickerModeDate];
[pickerDate setMinimumDate:minimumDate];
[pickerDate setMaximumDate:today];

[pickerDate setDate:currentDateObject animated:YES]; // here is the leak, if I remove this line there is no leak, and leaks also a UIDeviceRGBColor

可能重复,请参阅this question

**对不起,这应该是评论而不是答案**

相关问题