0
招呼每一个 我有表视图一个细胞,并且我在这个小区一个UITextView,用户可以编写自己想要的东西,这是cellForRow里面的代码:细胞与TextView的
static NSString *CellIdentifier = @"Cell";
UITextView *text;
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
text = [[UITextView alloc]initWithFrame:CGRectMake(1, 5, 200, 140)];
text.tag = 1;
UIView *statusView = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, 300, 150)];
statusView.tag = 0;
[statusView addSubview:text];
[cell.contentView addSubview:statusView];
}
else {
text = (UITextView *)[[cell.contentView viewWithTag:0] viewWithTag:1];
}
我想做一个保存按钮,我想知道如何从这个UITextView中的文本从另一个类的方法。当你点击按钮 THX