0

第一个 tableview 必须将参数传递给第二个 tableView,我将使用 SQLite 创建一个选择来创建第二个 tableView,在第二个 tableview 之后创建将调用 viewcontroller。

我在这里搜索但没有找到。

帮我。坦克。

对不起,我的英语不太好理解。

4

2 回答 2

0

很抱歉我无法在这里编写所有代码,但这个答案是帮助您在视图控制器之间共享数据。

在 ExampleAppDataObject.h 中添加此代码

NSString*   carName;
@property (nonatomic, copy) NSString* carName;

并在 .m 文件中

@synthesize carName;


#pragma mark -
#pragma mark -Memory management methods

- (void)dealloc 
{
    //Release any properties declared as retain or copy.
    self.carName = nil;
    [super dealloc];
}

并在选择行时在您的第一个 tableview 中添加 carName。

于 2013-02-04T06:30:21.623 回答
0

使用 Segue 将第一个视图控制器上的行选择数据传递到第二个。

于 2013-02-04T06:45:16.707 回答