Home  |  About  | Last |  Submit  |  Contact
AllQuests.com

Previous Question:  Can read my Ubuntu files from my Windows partition  General HelpNext Question:  Help Sending text to new view  iPhone Programming
Question rtrying to free memory ( Mac Forums iPhone Programming )
Updated: 2008-11-23 02:05:01 (1)
rtrying to free memory

Hi, i just want to know if some one here can help me to free memory runing my app.

I am working books (app) with more than 45 UIViews jumping with buttons between UIViews.......and every UIView have a background 320x480 png picture.

here show 2 graphics how i am using:







then my 2 questions are:

first, what code i have to put to remove from super view and free more memory removing UIViews

and second: where i have to put that xcode.

some people give me this next code: but i dont know how use it, and where to use it.

myView = [[UIView alloc] init]

or this one:

[UIView imageNamed:@"myImage"]

some idea please ?
thanks a lot brothers.!


imaumac

Answers: rtrying to free memory ( Mac Forums iPhone Programming )
rtrying to free memory

You should not have that many UIViews! You can change the image of an UIImageView programatically! You need only have 2 (current, next) or 3 (previous, current, next) views and change the images. That saves a LOT of memory and makes the application MUCH MORE responsive.

chbeer

Previous Question:  Can read my Ubuntu files from my Windows partition  Ubuntu Forums  General HelpNext Question:  Help Sending text to new view  Mac Forums  iPhone Programming

- Source: rtrying to free memory Mac Forums iPhone Programming
- Previous Question: Can read my Ubuntu files from my Windows partition Ubuntu Forums General Help
- Next Question: Help Sending text to new view Mac Forums iPhone Programming





AllQuests.com


Best dedicated servers   Top dedicated servers   Cheap dedicated servers   Linux dedicated servers   Windows dedicated servers   Unmetered dedicated servers