views:

56

answers:

1
for (NSString *CurrentArtistName in ArtistNamesArray) {
    CurrentArtistName = [CurrentArtistName stringByMatching:regEx capture:1];
    NSLog(CurrentArtistName);
    [ArtistNames addObject: CurrentArtistName];
}

why is this closing my app ?

There are no errors in the coding and the NSLog is logging the CurrentArtistName ? i really cannot understand why ?

Please help

Thanks

A: 
array = [[NSMutableArray alloc] init];    

I forgot to initialize the array XD

Noobie mistake but i thought i did