[Solved] split NSString into NSArray in ios


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”

solved split NSString into NSArray in ios