PaoloCuscela / Cards

Awesome iOS 11 appstore cards in swift 5.
MIT License
4.2k stars 274 forks source link

facing internal consistency crash #20

Closed pankajW closed 6 years ago

pankajW commented 6 years ago

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "DetailView" nib but the view outlet was not set.'

@objc func cardTapped(){ self.delegate?.cardDidTapInside?(card: self)

    if let vc = superVC {

        detailVC.detailView = detailView
        vc.present(detailVC, animated: true, completion: nil)
    } else {

        resetAnimated()
    }
}

After presenting on superVC. What could be the issue?

PaoloCuscela commented 6 years ago

This is probably an error on the view controller you're asking card to present. Can I see your project or a sample where you get it ?