Getting unknown length of nsstring out of nsstring -


so have long string looks

{     available = yes;     = player1;     imageid = 13623367787816752r;     time = 1367787816752; } 

there different length of imageid i'm woundering how can image id value only?

thanks

you use nsscanner. scan "available = ", "yes;" or "no;", etc. until you're @ imageid. once there, scan characters in set of numbers , letters, not including semicolon. (or whatever appropriate situation.)


Comments