As you've already alluded to, you need to put the code that alloc/inits your usrs somewhere where it is only called once (or at least, once before it is needed). Alternatively, you could put some logic in to only alloc/init it when it hasn't been already, similar to "lazy-loading".The problem is that the array seems to be resetting itself every time I press the button. How do I fix this?
P.S. If you have properties declared, you should make an effort to use the synthesized accessors you've defined for it, like you've already done with usrString and passwdString.
P.P.S. I would like to ask: what have you already done to educate yourself in the fundamentals of Objective-C / iPhone programming? Books? Videos? Tutorials? Etc? Be as specific as you can when you answer. Thank you.