unrecognized-selector

numberOfSections being called? iOS

本秂侑毒 提交于 2019-12-10 15:10:58
问题 Skip all this info and skip to the update at the bottom... I have dealt with unrecognized selectors before, but I cannot figure out what is going on this time. The call stack is opaque and I can't find out where the problem is originating from. I have tried using symbolic and exception breakpoints. This code was working perfectly before..I come back to work on this program some more and am now running into this [UITableViewSectionElement numberOfSections]: unrecognized selector sent to

Unrecognized selector calling category method in static iOS library

独自空忆成欢 提交于 2019-12-09 08:39:32
问题 I am using some third party software to aid in writing an iPad application using Xcode 4.3.2. The software is open source and is usually set up so its code will be compiled along with whatever code the developer writes for the application. Because I was using the software in numerous places, I decided to build it as a static library for the iOS simulator. I was able to build the library, and convert one application to link to that library instead of compiling the original source code. However

Core Data Error - NSDate localizedCaseInsensitiveCompare: unrecognised selector sent to instance

人盡茶涼 提交于 2019-12-08 09:07:34
问题 I have searched for the last several hours but have yet to find an answer. I implemented an AVFoundation camera, Im saving the image data to disk and storing only the path in core data. Everything works fine but after a random number of taken photos I get this error: CoreData: error: Serious application error. Exception was caught during Core Data change processing. This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification. -[__NSDate

Displaying banner ads with SpriteKit

假装没事ソ 提交于 2019-12-07 10:21:52
问题 I'm new to SpriteKit and just published my first game. Now I would like to add banner ads to the game. However, I'm completely lost. Most tutorials tell you to simply call self.canDisplayBannerAds = YES; in the viewDidLoad method. I'm doing that, and I also imported iAD.h and linked the required binaries. However, everytime I start the game it crashes and gives me the following error: -[UIView presentScene:transition:]: unrecognized selector sent to instance 0x15e2dd00 Does anybody know a

[__NSCFType searchKeyword:]: unrecognized selector sent to instance 0x6d8eb80

牧云@^-^@ 提交于 2019-12-07 01:49:01
问题 The following code is to add a subview to current view from storyboard: EventSearchViewController* view1 = [self.storyboard instantiateViewControllerWithIdentifier:@"searchView"]; [view1 setBookingSystem:system]; [self.view addSubview:view1.view]; In the view "view1", there is a textField. The following is a IBAction to the textField and the event is "Did end on exit". -(IBAction)searchKeyword:(id *)sender { NSLog(@"searchKeyword"); } The following is the error message. 2012-05-26 20:26:47

[__NSCFType searchKeyword:]: unrecognized selector sent to instance 0x6d8eb80

空扰寡人 提交于 2019-12-05 04:16:51
The following code is to add a subview to current view from storyboard: EventSearchViewController* view1 = [self.storyboard instantiateViewControllerWithIdentifier:@"searchView"]; [view1 setBookingSystem:system]; [self.view addSubview:view1.view]; In the view "view1", there is a textField. The following is a IBAction to the textField and the event is "Did end on exit". -(IBAction)searchKeyword:(id *)sender { NSLog(@"searchKeyword"); } The following is the error message. 2012-05-26 20:26:47.369 OnlineBooking[6607:f803] -[__NSCFType searchKeyword:]: unrecognized selector sent to instance

-[NSConcreteMutableData base64EncodedStringWithOptions:]: unrecognized selector sent to instance 0x776e920'

旧街凉风 提交于 2019-12-05 02:12:46
问题 My app keep crashing with the following message: * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSConcreteMutableData base64EncodedStringWithOptions:]: unrecognized selector sent to instance 0x776e920' Here is part of the code. Any help will be appreciated: -(void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{ // Saving the image in the uiimage "myImage". UIImage *myImage = [info objectForKey

NSURLSession dataTaskForRequest:completion: unrecognized selector sent to instance

独自空忆成欢 提交于 2019-12-04 22:11:59
When trying to create my own session object NSURLSession() and request an url I get an unrecognized selector exception but when I use the shared session NSURLSession.sharedSession() everything works fine. How come? var url = NSURL(string: "http:/www.google.com") if url != nil { //throws unrecognized selector when dataTaskWithURL is called let session=NSURLSession() session.dataTaskWithURL(url!) //works let sharedSession=NSURLSession.sharedSession() sharedSession.dataTaskWithURL(url!) } You have to init URLSession with a configuration: URLSession(configuration: .default) or use shared session

unrecognized selector sent to instance (iOS) [duplicate]

∥☆過路亽.° 提交于 2019-12-04 12:00:31
This question already has answers here : Closed 7 years ago . Possible Duplicate: unrecognized selector sent to instance Well... like so many others, I have gotten a "unrecognized selector sent to instance" error... The problem occurs when I press a button, e.g. in this case: -(IBAction)gotoTone:(id)sender { if(self.tone == nil) { Tone *toneMain = [[Tone alloc] initWithNibName:@"Tone" bundle:[NSBundle mainBundle]]; self.tone = toneMain; [toneMain release]; } [self.navigationController pushViewController:tone animated:YES]; } The error is: Terminating app due to uncaught exception

Unrecognized selector error for isEqualToString: when setting text of a label

若如初见. 提交于 2019-12-04 05:50:07
问题 I am trying to set the text of a label from one of the properties of my model object ( searchRecipeDetailsVariable ), but I get an error //Extract number of servings from dictionary and place in model self.searchedRecipeDetailsVariable.numberOfServings = [self.detailedSearchYummlyRecipeResults objectForKey: @"numberOfServings"]; //log number of servings to check that it works NSLog(@"Number of Servings, %@",self.searchedRecipeDetailsVariable.numberOfServings); self.numberOfServingsLabel.text