[Solved] split NSString into NSArray in ios

[ad_1]

When you print array you will see output as below… this is the way array look like on console.
(
text,
image
)

You can try accessing array object as below

NSLog("@%@", arrayAnsType[0]);

This will print “text”

[ad_2]

solved split NSString into NSArray in ios