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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-18-2010, 01:07 PM   #2 (permalink)
smasher
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

I assume this snippet is inside an action that gets called when you click the button? If so, the line you labeled "//Create mutable array" creates a new array each time you click - so when you enter "George" and click, a new array is created. The old array with "Fred" has already been destroyed.
__________________

Free Games!
smasher is offline   Reply With Quote
 

» Advertisements
» Online Users: 439
15 members and 424 guests
baja_yu, bignoggins, Bobarino, caraldo32, David-T, evilmatt10, Free App Monster, HemiMG, ilmman, jimmyon122, PowerGoofy, RickSDK, stevem54, taewhan, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,433
Threads: 94,026
Posts: 402,588
Top Poster: BrianSlick (7,978)
Welcome to our newest member, caraldo32
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:35 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.