objective-c accessing methods from custom cell

后端 未结 4 1294
广开言路
广开言路 2021-01-19 23:56

ok, this is maybe a newbie question but i need help with it.. I have a someview.m and in it a custom cell which is defined in customCell.h and .m So in someview.m i have

4条回答
  •  醉梦人生
    2021-01-20 00:45

    Make your UITableView global

    And in -(BOOL)textFieldShouldReturn:(UITextField *)textField

    add something like:

    UITableViewCell *cell = [tableView cellForRowAtIndexPath:TheIndexPath];
    [cell printStuff];
    

提交回复
热议问题