开发者

Unrecognized selector sent to an instance after refactoring - Xcode4

I'm trying to clean up some old code that I wrote to comply with Apple's guidelines on method naming etc. and encountered this. Basically, I have a button in Interface builder and a tapDown action connected to an event handler in my implementation file. I've changed the name of this event handler via the refactor tool built into Xcode. The name of the method is updated in the .h / .m files and in the IB GUI. I've also looked at the raw xml .xib file and there's no trace of my old method name.

When I click on the button however, I get an error saying unrecognized selector oldMethodNam开发者_JS百科e:. The error shows that something is still trying to call my older method, but I'm not sure what it is. What else can it be?

Thanks,

Teja.


Damn, figured it out a second after posting this question. The app on the simulator wasn't getting updated for some reason. Did a 'Reset content and settings' on the simulator and it works now.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜