Adding string Elements in NSArray
arrays, iphone, nsarray, nsstring, objective-c
Solution
Try this out:
NSString *ds1 = @"--";
[arrayout addObject:ds1];
NSLog(@"arrrrr '%@'",arrayout);
Hope this helps you.
Problem
I have mutable string array named arrayout. It is having 3 element .Now I want to add 1 String element that array.But when I try to add,it is taking null value....Cant get what to do...Please help... My code is : ``` NSString *ds1 = @"--"; [arrayout arrayByAddingObject:ds1]; NSLog(@"arrrrr '%@'",arrayout); ```