Xcode 3至Xcode 4 didSelectRowAtIndexPath

Xcode 3至Xcode 4 didSelectRowAtIndexPath,xcode,uitableview,xcode4,Xcode,Uitableview,Xcode4,只是在使用UITableViews从Xcode 3转到Xcode 4时遇到了问题,所以选择了RowatineXpath 它工作正常,在Xcode 3中转到我的新XIB,但在4中,它只是坐在那里并保持UITableView单元格处于选中状态。代码是一样的。。。。其实我在撒谎。。。一条线是不同的,但我已经尝试了两种,它不会改变结果 这是更改的行: AppDelegate*委托=[[UIApplication sharedApplication]委托] 致: AppDelegate*委托=(AppDe

只是在使用UITableViews从Xcode 3转到Xcode 4时遇到了问题,所以选择了RowatineXpath

它工作正常,在Xcode 3中转到我的新XIB,但在4中,它只是坐在那里并保持UITableView单元格处于选中状态。代码是一样的。。。。其实我在撒谎。。。一条线是不同的,但我已经尝试了两种,它不会改变结果

这是更改的行:

AppDelegate*委托=[[UIApplication sharedApplication]委托]

致:

AppDelegate*委托=(AppDelegate*)[[UIApplication sharedApplication]委托]

有什么想法吗

编辑:这是以下请求的内容:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {   
    int roundIndex = [indexPath indexAtPosition: [indexPath length] - 1];
    if(self.v8Supercars_DetailView_Controller == nil){
        V8Supercars_DetailView_Controller *v8_detailApp = [[V8Supercars_DetailView_Controller alloc] initWithNibName:@"V8_DetailView" bundle: nil];
        self.v8Supercars_DetailView_Controller = v8_detailApp;
        [v8_detailApp release];
    }

    NSString *summary = [[rounds_Array objectAtIndex: roundIndex] objectForKey: @"summary"];
    v8Supercars_DetailView_Controller.title = summary;
    v8Supercars_DetailView_Controller.round_date = [[rounds_Array objectAtIndex: roundIndex] objectForKey: @"date"];
    v8Supercars_DetailView_Controller.round_name = summary;
    v8Supercars_DetailView_Controller.round_direction = [[rounds_Array objectAtIndex: roundIndex] objectForKey: @"trackdirection"];
    v8Supercars_DetailView_Controller.round_track_length = [[rounds_Array objectAtIndex: roundIndex] objectForKey: @"tracklength"];
    v8Supercars_DetailView_Controller.round_track = [[rounds_Array objectAtIndex: roundIndex] objectForKey: @"trackmap"];   

AppDelegate *delegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
[delegate.v8SupercarsViewController pushViewController:v8Supercars_DetailView_Controller animated:YES];

//NSLog(@"ended element: Did u get here");  
}

您的
didSelectRowatineXpath
方法是什么样子的?如何将代码粘贴到这个小框中?我只有有限的字符?编写代码后,只选择代码部分,然后单击“代码”按钮(上面有“{}”符号的按钮)。然后你的代码会在一个“小盒子”里。。