Search code examples
swiftuitableviewuiviewcontrollernavigationxib

Is there an alternative for function Present in a UItableViewCell?


I want to navigate from UITableViewCell(Xib) to UIViewController but when I try to use present Value of type 'TableViewCell' has no member 'present So if anyone is familiar with a function that can help me navigate please help me :) .

Thank you for your time


Solution

  • UITableViewCell can’t present viewcontroller. Please store viewController to variable in your tableview cell. And use it to present. Or use didSelectRowAt delegate function and using self to present ( Or write your custom cell delegate if your event fire by button in cell)