Uitableview iPhone-按钮创建动作视图,如何推送类属性?

Uitableview iPhone-按钮创建动作视图,如何推送类属性?,uitableview,ios4,uibutton,parameter-passing,uialertview,Uitableview,Ios4,Uibutton,Parameter Passing,Uialertview,嘿,伙计们,我刚问了一个关于UIV的问题。 我在单元格中有一个按钮,我希望将对象的数据推入UIAlertView主体部分。现在我有这个: - (void)locationButton:(id)selector{ NSString *addressBody = [NSString stringWithFormat:@"%@", [[testList objectAtIndex:selectedCellIndexPath.row] address]]; UIAlertView

嘿,伙计们,我刚问了一个关于UIV的问题。 我在单元格中有一个按钮,我希望将对象的数据推入UIAlertView主体部分。现在我有这个:

- (void)locationButton:(id)selector{
    NSString *addressBody = [NSString stringWithFormat:@"%@", [[testList     objectAtIndex:selectedCellIndexPath.row] address]];
    UIAlertView *addressView = [[UIAlertView alloc] initWithTitle:nil
                                                message:addressBody
                                               delegate:self
                                      cancelButtonTitle:@"OK"
                                      otherButtonTitles:@"Show on Map", nil];
    [addressView show];
    [addressView release];
}
在viewDidLoad中,我初始化了会议类,如下所示

testList = [[NSMutableArray alloc] init];
Conference *conf1 = [[Conference alloc] initWithConferenceId:110];
Conference *conf2 = [[Conference alloc] initWithConferenceId:130];
[testList addObject:conf1];
[testList addObject:conf2];
但是,当按下按钮时,警报视图不会显示,它最终将与一起崩溃

“由于未捕获的异常'NSInvalidArgumentException'而终止应用程序,原因:'-[会议地址]:未识别的选择器已发送到实例0x5e273a0'”


有什么建议吗?

在您的
会议
课程中,没有实施
地址
方法


这可能只是实现中的拼写错误。但如果您在会议课上发布代码,则会更有帮助。

Oops!我意识到我试图调用一些不存在的东西;)