Iphone 更新tablecell中的textfield
NSString*cel=@text; nsindepath*a=[nsindepath indexPathForRow:1第1节:1]; CustomCell*c=CustomCell*[tableView cellForRowAtIndexPath:a]; c、 yes.text=cel; 我正在使用这些行更新放置在tablecell上的UITextfield。。。。。 但是它给了我一些这样的错误Iphone 更新tablecell中的textfield,iphone,uitextfield,tablecell,Iphone,Uitextfield,Tablecell,NSString*cel=@text; nsindepath*a=[nsindepath indexPathForRow:1第1节:1]; CustomCell*c=CustomCell*[tableView cellForRowAtIndexPath:a]; c、 yes.text=cel; 我正在使用这些行更新放置在tablecell上的UITextfield。。。。。 但是它给了我一些这样的错误 RootViewController.m:110:错误:“tableView”未声明此函数的首
RootViewController.m:110:错误:“tableView”未声明此函数的首次使用编译器告诉您tableView在调用函数的执行范围内是未知的。如果在interface builder中添加了UITableView,则需要将其添加到RootViewController的类定义中,如下所示:
@interface RootViewController:UIViewController< UITableViewDelegate, UITableViewDataSource>
...
IBOutlet UITableView *tableView;
...
@end
@property (nonatomic,retain) IBOutlet UITableView *tableView;
在Interface Builder中,通过右键单击或控制单击表格视图,将该行拖动到显示窗口中的RootViewController行,并从弹出的灰色窗口中选择tableView,将您创建的表格视图链接到此tableView变量。您能清理上述问题,使其更具可读性吗。。。?
@synthesize tableView;