这是我的代码比较缺乏投
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];
} 我不能够比较“标题”,at if(Title == "A #1") ,
其给予警告"Compariosn of distinct pointer types lacks a cast"
我如何能在if条件比较标题。 我也试过
if([Title isequalToString:@"A #1"])...but its not working for me.
Sry for unformated question。 问候
请照顾好您的格式,然后再发布。有预览。谢谢。 – 2010-09-01 05:50:10