Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7218681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T21:30:55+00:00 2026-05-28T21:30:55+00:00

UPDATE This is an old question for an old version of Xcode. It turned

  • 0

UPDATE

This is an old question for an old version of Xcode. It turned out that the issue was a bug in Xcode which has been fixed.

Original

I have a storyboard generated from making a new tab iphone application (with ARC)

In one of my tabs, if I drag a gesture recognizer (any, but let’s say Pan) onto a control, and then set the selector to an action, it just crashes as soon as I go to the tab.

There is nothing in the Console — it appears to be happening while the storyboard is being loaded (viewDidLoad is never called).

  1. I can’t figure out how to get more information
  2. On a different tab, this works fine. Both tabs were generated automatically.

(it’s possible I messed something up in the view, but I don’t have a clue to figuring out what I did).

If I make gestures programmatically, they work fine, but it’s nice to have it work in the storyboard, and I’m afraid that whatever is wrong will cause a crash some other way at some point.

MORE INFO

In the simulator I get

-[__NSCFString setView:]: unrecognized selector sent to instance 0x6d2db70

Again, need debugging techniques — for example, is there a way to find out what object 0x6d2db70 is?

Which is exactly like this question (with no answer):

Gesture recognizer in Interface builder crashes my app

MORE INFO

This is trivial to reproduce

  1. New iPhone tabbed application, ARC and Storyboard on
  2. Drag tap gesture onto second tab’s view (works on first one)
  3. Create an (IBAction)
  4. Connect the gesture’s selector connection to the action from #3
  5. run, go to second tab

Crashes. Same thing with my app, default tab works, other tabs don’t

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T21:30:56+00:00Added an answer on May 28, 2026 at 9:30 pm

    The error message tells us that the program is sending the setView: message to an instance of __NSCFString (which is obviously the private implementation class of NSString).

    Make sure you have tried running with zombies enabled. A zombie can easily cause an unrecognized selector error.

    If it’s not a zombie, put a breakpoint on -[NSObject doesNotRecognizeSelector:]. When the breakpoint is hit, you may be able to figure out the problem just from the stack trace. If not, you can print the debugDescription of the object (which is the same as the description for most classes).

    On the simulator, you can ask the debugger to print the object’s debugDescription like this:

    (gdb) frame 0
    #0  0x013bcbff in -[NSObject doesNotRecognizeSelector:] ()
    (gdb) po ((int*)$ebp)[2]
    this is my test string
    

    On the device, you do this:

    (gdb) frame 0
    #0  0x344bca22 in -[NSObject doesNotRecognizeSelector:] ()
    (gdb) po $r0
    this is my test string
    

    Update

    Based on your steps to reproduce, this is a bug in UIKit. File a bug report. You can work around the bug by creating a strong outlet on SecondViewController and connecting it to the gesture recognizer. Make sure you set the outlet to nil in viewDidUnload.

    Update

    Do not ever set your outlet to nil — part of the bug is that UIKit isn’t retaining — you need to keep your reference to make sure that the recognizers aren’t released.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE: This question is out of date, but left for informational purposes. Original Question
Follow up to this question This (similar version from old link) works in SQL
NOTE: This question deals with an issue observed back in 2011 with an old
Update: This turned into a blog post, with updated links and code, over at
Update: this question, including the title, was rephrased, see history for details I know
Update: This question was an epic failure, but here's the working solution. It's based
Update: This question is a duplicate of Are there any programming languages targeting PHP,
Update: This issue was not properly explored. The real issue lies within render :json
How do you update this? I've never seen any current team that actually checks
I have an old product that I need to update, written in C# and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.