0
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

5
  • Try ` NSLog(@"%@", CurrentArtistName);` instead. Commented Oct 3, 2010 at 15:49
  • 1
    NSLog is working as i said it is logging the currentartistname its just closing the app when it gets to adding to the array Commented Oct 3, 2010 at 15:51
  • 1
    Can you post the output from the crash? Commented Oct 3, 2010 at 15:53
  • 1
    2010-10-03 17:53:17.423 ___[878:207] Glee Commented Oct 3, 2010 at 15:54
  • 1
    As you can see it is logging the correct string, but just not adding to the array ? Commented Oct 3, 2010 at 15:58

1 Answer 1

-1
array = [[NSMutableArray alloc] init];    

I forgot to initialize the array XD

Noobie mistake but i thought i did

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.