わかりました、これはおそらく初心者の質問ですが、私はそれについて助けが必要です.. someview.m があり、その中に customCell.h と .m で定義されているカスタムセルがあります。
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
customCell *cell=[tableView dequeueReusableCellWithIdentifier:@"charCell"];
if (cell == nil || (![cell isKindOfClass: customCell.class]))
{
cell=[[customCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"charCell"];
}
return cell;
}
私にも方法があります
-(void) printStuff
{
NSLog(@"stuff");
}
カスタムセルは正常に機能していますが、printStuff メソッドにアクセスする必要があります。
- (BOOL)textFieldShouldReturn:(UITextField *)textField
これはcustomCell.m[[self super] printStuff]
にあります