objective-cunrecognized-selector

unrecognized selector sent to instance (_setViewDelegateContentOverlayInsetsAreClean)


It looks like there is a lot of way to get this error. I couldn't find any solution that worked in my case. The difference with most thread with the same error, is that the view that throw the error is my initial view and not called by a segue.

Here Is my error log:

Tabuleo[87837:3767493] -[loginViewController _setViewDelegateContentOverlayInsetsAreClean:]:
unrecognized selector sent to instance 0x7fb513d104e0
2018-07-03 13:37:25.365645+0200 Tabuleo[87837:3767493]
*** Terminating app due to uncaught exception 
'NSInvalidArgumentException', reason: '-[loginViewController _setViewDelegateContentOverlayInsetsAreClean:]:
unrecognized selector sent to instance 

I can't figure out by myself where it comes from because in my code I don't have any method called "_setViewDelegateContentOverlayInsetsAreClean".

At this point I don't have any clue and I read almost all post related to that.

My code is about 350 lines so I put a link to download it if it helps.

loginViewController.m

Thanks for your help.


Solution

  • I figured it out finally. I don't know exactly where it was messed up but redo every link of my elements in my storyboard for this view finally ended up working ! So if that happen just redo your links from storyboard to .h file.