iphone - UIDatePickerModeDateAndTime leaks -
After some time searching and commenting on my code, I have found that UIDatePickerModeDateAndTime
While the leak is not UIDatePickerModeDate
- However, I should be able to set the date and time through a picker so that I need it ... DateAndTime What is odd is that I have any other problem I have faced it, I have spoken it and I usually get reference to the problem, in which I was doing wrong, but I do not mention any of this - which makes me wonder.
While the same code creates zero leaks with UIDatePickerModeDate
, UIDatePickerModeDateAndTime
leaks 640 bytes when the picker appears on the first screen and every time a date Beers changed 256 bytes. In addition, when a datepicker.date property is also encountered, only using UIDatePickerModeDateAndTime
, it appears that another 128 bytes are leaked.
Actually, with my app, if used properly, it can be rare that 5k bytes will also leak from this screen.
Is there something that I should be worried about in the context of the app that was rejected? Should I consider using 2 bakeries, one for a date and for another time?
No advice is appreciated so that there is a lot to see, but here are some codes ...
// initial code for date Picture Date Picture = [[UIDAte Picture Alok] initWithFrame: CGRectMake (0, 480, 325, 250)]; DatePicker.datePickerMode = UIDatePickerModeDateAndTime; // ... date and time leak, ... is not the only date picker.minuteInterval = 15; DatePicker.hidden = NO; [DatePicker addTarget: Self-action: @SelectDate: Control events: UIControlEventValueChanged]; [Self.view addSubview: datePicker]; In the end, if Apple has decided to reject the app - which might be 'what else could I do, how would I argue with them?' "This leak is your fault?" No, this is my app and this leak is my fault for using a disturbing component. I am using a date picker and time picker instead of the date and time picker.
Not a single leak!
Comments
Post a Comment