How can I pass an array into a method.
For example:
If i had this array..
array[0] = @"Info";
array[1] = @"Info2";
array[2] = @"Info3";
and I have the method
- (NSString *)DisplayArrayNSString *)thevalue
{
How could I properly write "thevalue" as declared in the parameter above be set to take in an array?
What I want out of this is to have the entire array passed into thevalue and to return one piece of the array..
so like
return thevalue[2];
or return the value[0];
Do you follow me?
Hope so!
lemme know - thanks a lot!
- Zac
}
For example:
If i had this array..
array[0] = @"Info";
array[1] = @"Info2";
array[2] = @"Info3";
and I have the method
- (NSString *)DisplayArrayNSString *)thevalue
{
How could I properly write "thevalue" as declared in the parameter above be set to take in an array?
What I want out of this is to have the entire array passed into thevalue and to return one piece of the array..
so like
return thevalue[2];
or return the value[0];
Do you follow me?
Hope so!
lemme know - thanks a lot!
- Zac
}