Custom UITableViewCell not calling prepareForSegue

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

I have a custom UITableViewCell, called EventCell.

EventCell.h

#import 

@interface EventCell : UITabl         


        
4条回答
  •  既然无缘
    2021-02-14 00:24

    As stated above, you need to use didSelectRowAtIndexPath unless you configure a segue in your storyboard to a new UIViewController. This allows you to use the prepareForSegue function instead of the programmatic call of performSegueWithIdentifier.

    Hope that helps clear it up!

提交回复
热议问题