Custom UITableViewCell not calling prepareForSegue

前端 未结 4 972
刺人心
刺人心 2021-02-14 00:00

I have a custom UITableViewCell, called EventCell.

EventCell.h

#import 

@interface EventCell : UITabl         


        
4条回答
  •  花落未央
    2021-02-14 00:34

    My problem was the cell identifier.

    So, in - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath I declared static NSString *cellIdentifier = @"cell"; and then in storyBoard I added this identifier in here:

    enter image description here

    And here you go!

提交回复
热议问题