'Unrecognized selector sent to instance'

I am receiving the following Error

[UIViewController setThisViewData:]: unrecognized selector sent to instance 0x71800b0
2012-10-24 16:06:05.071 Movie Rental[5468:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController setThisViewData:]: unrecognized selector sent to instance 0x71800b0'

at the following lines of “basicInfoViewController.m“:

  • Detect which app is currently running on iOS using sysctl
  • pull notification locally on jailbroken device
  • xcode 5 can't see NSLog(s) from old iOS project
  • Passing Data From iPhone app to PHP file
  • Swift 3: Request Camera Permission Dialog Priming (Prime Permissions) in iOS
  • How to use tap gesture in Accessibility in swift?
  •  contactInfoViewController *destViewController = segue.destinationViewController;
     destViewController.thisViewData = [[NSMutableDictionary alloc] initWithDictionary:self.viewData];
    

    My contactInfoViewController.h looks like

    @interface contactInfoViewController : UIViewController
    {
        NSMutableDictionary *thisViewData;
    }
    @property(nonatomic, strong) NSMutableDictionary *thisViewData;
    

    and i have included the

    @synthesize thisViewData;
    

    for the implementation.
    Why am I getting this error ?

    Solutions Collect From Internet About “'Unrecognized selector sent to instance'”

    Looks like you haven’t set the class for the UIViewController in interface builder so instead of getting a contactInfoViewController you are getting a UIViewController.