I’m trying to do something like this ..
NSString *string = [NSString stringWithFormat:@"Hello World"];
NSArray *array = [NSArray arrayWithObject:string];
[uitextviewOutlet setText:[NSArray arrayWithArray:array]];
and I’d like for that to show up on my uitextviewOutlet window, which is an object of UITextView that will print out text.
The code works if I straight out send the uitextviewOutlet object the setText message and if it takes string as the parameter, but it won’t take the array.
is there a way to have it take an array?
TIA.
You can join the elements with, let’s say a comma like this:
NSString *joinedString = [array1 componentsJoinedByString:@","];Edit_: I’m not a friend of “Do it for me”, but here you go:
By the way, your code makes no sense, or do you fill up the array with more than just one value?