curiosity button question

Member
Posts: 178
Joined: 2008.09
Post: #1
Hi.
I am making a book app, with a lot of conections inside the book.
(like cross reference) and
every conection is a button to jump to another place inside the book app.
now I have more than 400 buttons (conections)
the app only is using 7MB of memory
( on device with Activity Monitor )

now the question:

How many buttons is the limit that we can use on an aplication please ?.
(on xcode)

example:
- (IBAction)button_name: (id)sender { }

thanks for read.

my iphone website: http://www.elsalvadorguia.com
intel Imac 20", iphone 8GB (2G)
Quote this message in a reply
Moderator
Posts: 613
Joined: 2004.09
Post: #2
There is no hard set limit on the number of UIButtons an application can have. Always be very cautious of the amount of memory you are using.

Kyle Richter
DragonForged.com
Twitter: @kylerichter
Quote this message in a reply
Member
Posts: 178
Joined: 2008.09
Post: #3
Thanks Kodex.
letme ask you another little think.

please, focus when the apication is runing.....

when the user press a button on iphone, the button IBAction is calling just in that moment,

or

the iphone device LOAD all 400 - (IBAction) buttons on memory before start ?

thanks one more time !

my iphone website: http://www.elsalvadorguia.com
intel Imac 20", iphone 8GB (2G)
Quote this message in a reply
Member
Posts: 45
Joined: 2008.04
Post: #4
Are you saying you have a nib with 400 different buttons in it connected up to a class with 400 different actions?

... surely I misunderstand something here
Quote this message in a reply
Member
Posts: 178
Joined: 2008.09
Post: #5
i think you are asking me this: .....

i have:

a FILE_AppDelegate.m with more than 700 - (IBAction)buttons: (id)sender;
and of course on Interface Building the conections in the file called:
MainWindow.xib


important note:
now i just have 300 - (IBAction)buttons WORKING very good and using only 8 MB of memory.
use few memory because is only text on each conection.

my question was if the aplication will work with those 700 - (IBAction)buttons ???

Kodex answer
but you ask again, i ask again. jajaja

thanks one more time

my iphone website: http://www.elsalvadorguia.com
intel Imac 20", iphone 8GB (2G)
Quote this message in a reply
Member
Posts: 45
Joined: 2008.04
Post: #6
I recommend you to use instruments to profile your memory usage - especially on startup when it is decoding the nib (MainWindow.xib).
Quote this message in a reply
Member
Posts: 178
Joined: 2008.09
Post: #7
excelent !!, thanks for your valuable help.
i will take care of that,
in fact, on start up, use 6 or 9 MB with 500 buttons, then use another 3 more. !
thansk again !

my iphone website: http://www.elsalvadorguia.com
intel Imac 20", iphone 8GB (2G)
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Increase skill level button dunhill68 12 5,284 Jan 8, 2010 02:57 PM
Last Post: dunhill68
  Saving the game state when pressing the Home button Nacho 3 3,304 Feb 10, 2009 05:33 PM
Last Post: Nacho
  how to load a .png image into round rect button? ericnk 3 6,339 Jan 8, 2009 09:54 AM
Last Post: kodex
  a small question (xcode button actions) imaumac 3 4,190 Oct 14, 2008 10:03 PM
Last Post: imaumac