Pregunta

I have 2 Uidatepickers in my controller. when this nib gets loaded, it consumes memory of about 5mb. I tried to zero-in to the problem. It seems UIdatepickers are consuming all this. If is remove them, it takes only about 0.1mb. These datepickers are static i.e. i created them by just drag and drop and assigned IBOUTLETS to them. This dosent seem to be a code issue, thus i have none to post. Please help. thank you.

¿Fue útil?

Solución

5mb is a reasonable amount of memory to consume on any platform, regardless of whether you're on an iPhone or iPad. If for any reason this allocation bugs you, create the UIDatePickers programatically and nil them out when you're done with them so that they're released.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top