Reputation: 214
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.
Upvotes: 0
Views: 114
Reputation: 14304
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 UIDatePicker
s programatically and nil them out when you're done with them so that they're released.
Upvotes: 1