Unrecognized Selector Sent to Instance UIViewController

后端 未结 2 1816
南旧
南旧 2021-01-12 23:58

I keep getting the error:

NSInvalidArgumentException\', reason: \'-[UIViewController setPhotoCellName:]: unrecognized selector sent to instance

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-13 00:08

    You believe that your destination is an object from the FlickrImageViewController but the app doesn't. Look at the class you have assigned that controller in your storyboard; according to the error, it's a bare UIViewController.

提交回复
热议问题