3

I'm trying to make a gesture recognizer in my app with Interface Builder. I drag and drop my gesture on my view (it is a UIView which contains UILabel, UIImage and UITextView, all made in Interface Builder).

But when I compile and run, my app crashes and I get the following error:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString setView:]: unrecognized selector sent to instance 0x80a5fd0'

I don't understand the reason.

Can someone help me?

Nasreddine
  • 36,610
  • 17
  • 75
  • 94
Vinestro
  • 1,072
  • 1
  • 10
  • 32
  • which iOS you are using?? iOS 5?? – Ajeet Pratap Maurya Dec 05 '11 at 12:22
  • Please show the code of the event fired on gesture touch – Suresh Varma Dec 05 '11 at 12:23
  • I'm using iOS 5, and I haven't any code for my gesture recognizer because I made it in Interface Builder so I just drag and dropped it on my view in IB. – Vinestro Dec 05 '11 at 12:25
  • cross check your IBOutlet.if your IBoutlet is not matched then also it causes the problem.Another case is check your ios simulator is running as the ios5.0 or not.if possible post some of the code for better results from us. – ajay Dec 05 '11 at 12:45
  • I checked my IBOutlet and all appears to be good, my simulator is running iOS 5.0 so it's ok too. – Vinestro Dec 05 '11 at 12:55
  • did you ever figure this out? Have this too. – Lou Franco Jan 28 '12 at 18:14
  • No sorry, I made it with another method; programmatically – Vinestro Feb 25 '12 at 17:37
  • 1
    See the following question that handles the same topic: [Crash when using gesture recognizers in StoryBoard][1]. [1]: http://stackoverflow.com/questions/9035826/crash-when-using-gesture-recognizers-in-storyboard – Tom Verbeure Aug 15 '12 at 04:41

0 Answers0