How to search for nsmutablearray in c-iPhone object application

I am reading an RSS feed in nsmutablearray. I want to find an XML feed. for this i want to look for nsmutablearray. I am very new to iphone apps. can someone help with this ..

thanks,

+5
source share
1 answer

You can search arrays using predicates, for example:

NSMutableArray* names = [NSMutableArray arrayWithObjects:@"Andy", @"Bart", @"Bob", nil]; 
NSPredicate* predicate = [NSPredicate predicateWithFormat:@"SELF beginswith[c] 'b'"];
NSArray* namesStartingWithB = [names filteredArrayUsingPredicate: predicate];
// namesStartingWithB now contains @"Bart" & @"Bob"

NSArray NSPredicate . , XML (, RSS-), Matt Gallagher libxml2 XML XPath Cocoa.

+18

All Articles