PaoloCuscela / Cards

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

facing internal consistency crash #20

Closed pankajW closed 7 years ago

pankajW commented 7 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 7 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 ?