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

前端 未结 1 387
情话喂你
情话喂你 2020-12-12 04:23

i saw in one post -(id)arrayByPerformingSelector declaration in interface should do , but when i tried it this declaration was treated as separate method and in

相关标签:
1条回答
  • 2020-12-12 05:16

    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.

    0 讨论(0)
提交回复
热议问题