for some reason my NSMutableArray is always empty, can you guys please help me? here is the code :
-(NSMutableArray*) parseIt: (NSString*) toPars {
NSMutableArray *waranties;
NSString *beginTitle = @"<title>";
NSString *eindTitle = @"</title>";
NSString *title = [self getTitle:toPars start:beginTitle and:eindTitle];
if(title != NULL){
NSLog(@"de title = %@", title);
[waranties addObject:title];
NSLog(@"de title = %@", [waranties objectAtIndex:0]);
}
first nslog shows perfectly what has to be showed, second one shows null; thanks in advance