Hi, this is my code
NSDictionary *dictionary = [self.tableDataSource objectAtIndex:indexPath.row];
NSArray *Children = [dictionary objectForKey:@"Children"];
NSArray *Title = [dictionary objectForKey:@"Title"];
if([Children count] == 0) {
if(Title =="A #1"){
UIImageView *tmp = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg2.png"]];
[dvController.detailImage addSubview:tmp];
[tmp release];
}
i am not able to compare "Title", at if(Title == "A #1") ,
its giving warning "Compariosn of distinct pointer types lacks a cast"
how can i compare Title in if condition.
i also tried
if([Title isequalToString:@"A #1"])...but its not working for me.
Sry for unformated question. regards