开发者

Error adding object to mutable array

开发者 https://www.devze.com 2023-01-19 00:46 出处:网络
for (NSString *CurrentArtistName in ArtistNamesArray) { CurrentArtistName = [CurrentArtistName stringByMatching:regEx capture: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 cod开发者_C百科ing and the NSLog is logging the CurrentArtistName ? i really cannot understand why ?

Please help

Thanks


array = [[NSMutableArray alloc] init];    

I forgot to initialize the array XD

Noobie mistake but i thought i did

0

精彩评论

暂无评论...
验证码 换一张
取 消