I have one string as follows:
NSString *str = @"abcd,efgh";
Now I want to convert this string into NSMutableArray like
NSMutableArray *arr = {abcd,efgh};
then how can I do this?
any help would be appreciated.
NSArray *arr = [@"abcd,efgh" componentsSeparatedByString:@","];
should do the job.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With