jQuery in Action, 3rd edition
The moose likes iOS and the fly likes SearchBar increases memory by 1MB. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Mobile » iOS
Bookmark "SearchBar increases memory by 1MB." Watch "SearchBar increases memory by 1MB." New topic

SearchBar increases memory by 1MB.

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Just curious if you have seen this.

I have an iPad app which uses a SearchBar. I have added the two delegate methods. The one that gets called when you touch in the textfield has no code in it. However, that point you touch in the searchbar's textfield I see memory increase by one MB. Actually touch in increases about 600KB, then first character typed in increases it the remaining 400KB.

Luckily my app doesn't crash.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
subject: SearchBar increases memory by 1MB.
It's not a secret anymore!