ios - remove object if string starts with @"type(music)" -
if have nsmutablearray many strings in it. possible remove objects start "type(music)"? array looks like:
[0] = type(movie),name... [1] = type(music),name... [2] = type(movie),name... [3] = type(movie),name... [4] = type(music),name...
you can use loop remove objects start "type(music)".
nsmutablearray *array = ...; (nsstring *string in array) { if ([string hasprefix:@"type(music)"]) { [array removeobject:string]; } }