views:

90

answers:

1

I have a UIDatePicker in interface builder which is connected to my outlet, and i release it in my dealloc method.

It leaks so much, when i load the view controller and it leaks even more as i scroll through it

  • Leaked Object: NSDateComponents
  • Responsible Frame: UIDatePickerView
  • Number of leaks: about 30 (depends on how much i scroll through the picker)
  • Total Leak Size: 4 kb (everytime i load the viewcontroller)

Anybody else has this problem with date pickers?

A: 

Dó you provide an NSDate object to the picker, and I'd you do, is it properly released ? Any object you provide to a foundation class should be released, the receiving class will send a retain message to the object.

Jimmy Selgen Nielsen