salve a tutti
nella mia app devo fare il parsing di un file XML e volevo inserire il titolo in una UILabel
questo è il mio codice:
- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string {
if ([tag isEqualToString:@"titolo"]){
UILabel *titolo=[[UILabel alloc]initWithFrame:CGRectMake(80.0f, 88.0f, 320.0f, 44.0f)];
titolo.text=@"%@",string;
[self.view addSubview:titolo];
}
}
ma non scrive assolutamente niente
qualche idea??