Is there any way to convert the string into an array of objects of different data types, according to multiple format specifiers?
I have tried initWithFormat:arguments:
but I'm not getting the expected results.
There is a similar function in Python in the struct
module, unpack(fmt,String)
, where fmt
is a format specifier string and String
is the string to be converted.