I have a NSArray structure likes this {w123,123,234,345,w124,234,235,w125,234,453,435,....}
What I am trying to do is to specify which one begins with "w" then do something But I don't know how to do that in objective C, anyone can help? Thanks in advance.
for (NSString *text in myArray) {
if ([text hasPrefix:@"w"]) {
// Do something.
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With