how to resolve the issue: “'Instance method '-arrayByPerformingSelector:' not found (return type defaults to 'id')”

天大地大妈咪最大 提交于 2019-11-28 14:21:49
Jesse Black

I checked the iOS SDK and couldn't find a method with that name. Considering it is making the app crash... there isn't a method with that name.

If you get that same type of warning and your app works fine, my answer here would be relevant

I don't know if you got started on this SO question: Implementing my own navigation controller?, but the accepted answer there references a blog.

Researching that, you will need to:
• download NSArray+PerformSelector.h and NSArray+PerformSelector.m from here
• add them to your xcode project
• add #import "NSArray+PerformSelector.h" to the .m file you are experiencing your crash in.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!