As I was reading I saw this:
static NSString *randomNounList[3];
does that make an array of NSString pointers called randomNouns?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, that makes an array of 3 pointers to NSString and you can freely use it as normal array.
Just remember that unlike objective-c containers plain arrays do not retain their elements and you have to maintain all memory management issues yourself (e.g. retain strings to make sure then won’t get deallocated prematurely and release them when you don’t need them).