Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-26-2009, 11:23 AM   #1 (permalink)
New Member
 
Join Date: Jun 2009
Posts: 1
Default UIScrollView Memory consumption

Hi Folks,

realize this is my first post here. So hi everyone.

Let's start off with a tough one :-)

I have a UIScrollView which contains a UIImageView and two UIButtons. On iPhone OS 3.0 (Final release) I'm experiencing a strange problem: In Instruments I can see that whenever I'm scrolling my memory consumption increases and this never gets released. I can also see that when using Apple sample code on 3.0.

Has anyone else experienced that as well?

Thanks in advance

Cheers
Timo
21Jobso is offline   Reply With Quote
Old 07-03-2009, 10:32 PM   #2 (permalink)
Registered Member
 
kencalius's Avatar
 
Join Date: Jul 2008
Posts: 39
Default

It's me who got the same problem...
I'm freaking out for a week.
Not even the UIScrollView, the memory still increases when i scroll a UITableView.
Is this a bug, or i'm misunderstanding something??
__________________
IM Gomoku
A crowded & funny gomoku community.
By a vietnamese-american female developer.

Last edited by kencalius; 09-17-2009 at 06:18 AM.
kencalius is offline   Reply With Quote
Old 07-05-2009, 11:53 AM   #3 (permalink)
Registered Member
 
Join Date: Apr 2009
Location: Peterborough, England
Posts: 43
Default

I am having a similar issue, but I am simply moving the center co-ordinates of a UIImage. Did you mange to resolve this? If not do you want to post some of your code, I can look to see if you are doing anything the same as me and maybe identify where the problem is?
NeoNate is offline   Reply With Quote
Old 07-05-2009, 12:09 PM   #4 (permalink)
Registered Member
 
mnemonic_fx's Avatar
 
Join Date: Jun 2008
Posts: 419
Default

Make sure you balance out the retain count for the UIImageView and the UIButton instances, not allocating more than needed, in other words if there are no changes on the UI, do not reallocate on scrolling.

The similar case with UITableView, additionally with reusing the UITableViewCell.
__________________
Visit Me

Writing code is not only about writing instructions to a machine / computer, but also about writing something that could be read, understood, and maintained by others. That's why, I like Cocoa.
mnemonic_fx is offline   Reply With Quote
Reply

Bookmarks

Tags
3.0, memory, uiscrollview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 255
18 members and 237 guests
ADY, AragornSG, BrianSlick, Dani77, Dattee, dre, glenn_sayers, HemiMG, JasonR, karlam963, nobre84, prchn4christ, Rudy, spiderguy84, themathminister, tomtom100, viniciusdamone, vvenkatachallam
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,884
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, karlam963
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:19 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0