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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top