hi,
here i'm giving a hint:
use following NSString method
- (NSArray *)componentsSeparatedByString

NSString *)
separator
the above method gives you all elements separated by
separator, (in ur case separator is ":")take count of those elements. i hope this will help u.