ios,swift,ibaction,sigabrt,unrecognized-selector
Finally, I found the answer! I deleted IBActions which were previously connected from Main.storyboard in: View Controller Scene -> Show the Connections Inspector
ios,objective-c,unrecognized-selector
I think your TableView may be getting released after you create it and the method ends. You probably need to create an instance variable inside in View controller that references it. @property (strong, nonatomic) IBOutlet UITableView *tablview; /* Then remove the associated cell from the Table View */ [self.tablview deleteRowsAtIndexPaths:@[indexPath]...
ios,objective-c,unrecognized-selector
UINavigationController *navController = (UINavigationController *) self.window.rootViewController; MasterViewController *masterController = [navController.viewControllers objectAtIndex:0]; The problem is here. The code assumes that the rootViewController of the window is a navigation controller, but it's probably actually your split view controller. You then request the first view controller held by this supposed-but-not-actual navigation controller, which...
objective-c,osx,class,unrecognized-selector
With XCode 4.2 you need to add the line @synthesize name,hireDate,employeeNumber; to your Employee.m file after the @implementation line Auto synthesis of properties only became available with XCode 4.4 - http://useyourloaf.com/blog/2012/08/01/property-synthesis-with-xcode-4-dot-4.html You should look at upgrading your XCode version...
ios,swift,unrecognized-selector,nsexception
Something like this btn.addTarget(self, action: "backAction", forControlEvents: UIControlEvents.TouchUpInside) self.view.addSubview(btn) func backAction() { self.navigationController?.popViewControllerAnimated(true) } ...
ios,objective-c,unrecognized-selector,brightcove
Add -ObjC in other Linker flags
ios,swift,nsnotificationcenter,unrecognized-selector
That's because the selector you're using doesn't specify that the method it should notify has a parameter. Try this: NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("keyboardWasShown:"), name: UIKeyboardDidShowNotification, object: nil) (Note the : in the selector.) See Objective-C: Calling selectors with multiple arguments (this still applies in Swift)....
ios,objective-c,unrecognized-selector,nsexception
You are calling initWithDatabaseFile: but the name of the method is initWithDatabaseFilename:. Make sure your .h file for DBManager has the correct name matching the actual method in the .m file....
objective-c,runtime-error,unrecognized-selector
There's problem in your filltheLetterArray method, you're replacing objects in oneletter array, you're storing images (UIImages from randomImage method)directly into it, and this method crashing the app, setImagesInArray, this line image4.image = [UIImage imageNamed:[oneletter objectAtIndex:r]]; as you're assigning image file name (as NSString) but actually its containing UIImage objects.
ios,paypal,crash,unrecognized-selector
Don't forgot to add -lc++ -ObjC in Other linker flags
ios,objective-c,json,unrecognized-selector
It should be NSDictionary *getVersion = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil]; NSString *currentVersion = [getVersion objectForKey:@"version"]; or with new syntax NSString *currentVersion = getVersion[@"version"]; because objectAtIndex means you are accessing an array but you only have a json object...
ios,objective-c,uitableview,unrecognized-selector
you are registering wrong class [self.PendingChal registerClass: [UITableViewCell class]forCellReuseIdentifier:@"GameTableCell"]; should changed like [self.PendingChal registerClass: [GameTableCell class]forCellReuseIdentifier:@"GameTableCell"]; And please following method in your GameTableCell.m file -(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"GameTableCell" owner:self options:nil]; // Grab a pointer to the first object...
ios,objective-c,unrecognized-selector
It looks like you must have set up currentContainer as a IBOutlet at some point (but you're not doing that now), because in the storyboard, I see currentContainer connected as an outlet to the same label that containerName is hooked up to. Delete that connection, and I think it should...
ios,objective-c,uitabbarcontroller,custom-view,unrecognized-selector
You are setting the utilizationManager instance in your UtilizationVC, but you don't have any property in that class. For this reason the app crashes. I think you commit an error because you put the property: @property (weak,nonatomic) UtilizationManagerVC* utilizationManager; in the UtilizationManagerVC..so a class that has as property an object...
The thing is that the parameter is not up to you. It is always the button (the "sender"), and that is the only thing it can be. In other words, if you want this function to have a parameter, then by all means you will need to set your selector...
I'm not an expert on swift, but it seems like this is not working out: You are declaring moveBackground as a function inside levelClicked, but on your timer you are referencing self as target. The Class itself has no method moveBackground. It's only visible inside your function levelClicked. Try to...
ios,objective-c,uitableview,unrecognized-selector
No matter how you declared dwarves, it is an NSArray and not an NSMutableArray. Therefore addObject crashes. I believe the combination of "copy" property and mutable type doesn't do what you think it should do. Better make "dwarves" just a normal "strong" property, but initialise self.dwarves = [@[@1.5,@2.,@2.5,@3.,@3.5,@4.,@4.5,@5.,@5.5,@6.,@6.5,@7.] mutableCopy]; ...
ios,objective-c,unrecognized-selector
[loggedUser isStaff] seems to be an NSNumber / Boolean object yet you are trying to compare it to an NSString. Booleans and NSNUmbers do not have an isEqualToString method. If you want to compare whether the user isStaff, you should try: if ([[loggedUser isStaff] boolValue]) { [self performSegueWithIdentifier:@"staffLogin" sender:self]; }...
ios,objective-c,table,search,unrecognized-selector
Change this code: if (tableView == self.searchDisplayController.searchResultsTableView) { songs = [searchResults objectAtIndex:indexPath.row]; } else { songs = [songs objectAtIndex:indexPath.row]; } MPMediaItem *rowItem = [songs objectAtIndex:indexPath.row]; to this: MPMediaItem *rowItem; if (tableView == self.searchDisplayController.searchResultsTableView) { rowItem = [searchResults objectAtIndex:indexPath.row]; } else { rowItem = [songs objectAtIndex:indexPath.row]; } ...
ios,objective-c,uitableview,unrecognized-selector
Presumably you've defined a custom cell subclass with a configure: method. Your subclass isn't being used - that message means you're calling the method on a plain UITableViewCell. The most common cause of this is forgetting to set the cell class in the storyboard. Otherwise, you'll need to show how...
ios,objective-c,json,unrecognized-selector
You're expecting the "location" key to point to an array, but it doesn't. It points to an object, get rid of for (NSDictionary *locationDict in locationDictionary) { and just pull the address out of locationDictionary instead.
ios,reloaddata,unrecognized-selector
If _FiltrationString is an NSString you should be using this command: _FiltrationString = [NSString stringWithFormat:@"%@",[alertView textFieldAtIndex:0].text]; [_tankFilterArray addObject:_FiltrationString]; instead of _FiltrationString = [alertView textFieldAtIndex:0].text; The command equates _FiltrationString to the address of the alert view textfield....
ios,objective-c,json,unrecognized-selector
fotoURL is already a string, so you don't need to call stringValue on it. You can tell this by [__NSCFString stringValue], the __NSCFString means the object is of class __NSCFString (which is effectively an NSString)....
ios,objective-c,unrecognized-selector,chartboost
We just released a live fix for this. You do not have to update your SDK to get the fix, it's already there :)
ios,objective-c,uitableview,unrecognized-selector
You need to subclass UITableViewCell and reposition the frame of the built in imageView in layoutSubviews to achieve what you want to do. You should never add subviews in cellForRowAtIndexPath: to the cell, it breaks MVC. static NSString * const CellIdentifier = @"CellIdentifier" @implementation .... // Add this in viewDidLoad...
ios,objective-c,crash,unrecognized-selector
By reading your crash message: -[CriteriaViewController topViewController]: unrecognized selector sent to instance 0xa99df90 2014-04-17 17:54:20.534 Parse+Storyboard[7095:60b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:'-[CriteriaViewController topViewController]: unrecognized selector sent to instance 0xa99df90' It seems like UINavigationController *navController = (UINavigationController *)segue.destinationViewController; is returning a "CriteriaViewController" instead of a UINavigationController....
ios,cocoa-touch,nsjsonserialization,unrecognized-selector
The jsArray contains dictionaries. So job is an NSDictionary. NSDictionary doesn't have a method named sn. If you want the value for the key @"sn" then you need: for (NSDictionary *job in jsArray) { NSLog(@"job: %@", job); NSLog(@"%@", job[@"sn"]); } ...
ios,objective-c,selector,nstimer,unrecognized-selector
The argument of timeCycle: is NSTimer not UILabel. Also why you need to pass the label ? It's a property right ? So change your method like: - (void)viewDidLoad { [super viewDidLoad]; timer = [NSTimer scheduledTimerWithTimeInterval:animationDuration target:self selector:@selector(timeCycle:) userInfo:nil repeats:YES]; } - (void)timeCycle:(NSTimer *)timer { time++; if (time == 10)...
ios,objective-c,uibutton,unrecognized-selector
You can't cast sender to UIBarButtonItem since sender is actually a UIButton. Change the line: controller.popoverPresentationController.barButtonItem = (UIBarButtonItem *)sender; to: controller.popoverPresentationController.sourceView = sender; ...
ios,objective-c,nsdictionary,unrecognized-selector
The problems is this line: animals= [NSDictionary dictionaryWithObjectsAndKeys:_A,_B,_C,_D,_E,_F,_G,_H, nil]; When you create a dictionary with dictionaryWithObjectsAndKeys: the list of items you supply have to be objectA, keyA, objectB, keyB, objectC, keyC, nil. Right now it looks like all you have is objectA, objectB, objectC, nil. Which looks like this if...
ios,objective-c,uitableview,plist,unrecognized-selector
Your countriesList consists of NSStrings, not NSDictionarys. Change your tableView:cellForRowAtIndexPath: method to: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"]; cell.textLabel.text = [[countriesDetails objectForKey:[countriesList objectAtIndex:indexPath.row]] objectForKey:@"country"]; return cell; } ...
ios,objective-c,unrecognized-selector
I think the issue is with the placement of ']' :) May be the statement should look like imageName.image = [UIImage animatedImageNamed:[[myArray objectAtIndex:indexValue] valueForKey:@"imageName"] duration:1.0f] ...
ios,objective-c,uiviewcontroller,segue,unrecognized-selector
I've seen this error before when you've set the class of a view (probably your controller's main view) to a class that's not a subclass of UIView. Make sure that when you set the custom class of your controller (in the storyboard) that you've set it on the controller, not...
ios,iphone,objective-c,parse.com,unrecognized-selector
If you're trying to get the image that is inside an object through it's pointer, you need to call fetchfirst. So, if I understand you question correctly, you should try: PFObject *object... [object fetchIfNeededInBackgroundWithBlock:^(PFObject *object, NSError *error) { if (!error) { // Now get the file PFFile * connectImageFile =...
objective-c,uisegmentedcontrol,unrecognized-selector
The error is saying that something sent the message -matchModeSegmentedControl: to an instance of CardGameViewController. Note the colon on that message name. Your class has a property matchModeSegmentedControl whose getter is a method named after the property (-matchModeSegmentedControl). Note, no colon in that method name. Your class also has an...
ios,ios8,unrecognized-selector,uialertcontroller
You should not use a bar button item as a view, it is not. The fix is very simple. UIPopoverPresentationController * popover = alertController.popoverPresentationController; popover.permittedArrowDirections = UIPopoverArrowDirectionUp; popover.barButtonItem = sender; ...
ios,objective-c,sorting,nsmutablearray,unrecognized-selector
The problem is that you are have NSNulls in your unsorted array. you need to remove these before calling sortedArrayUsingSelector: in fact everything in your array must implement the selector localizedCaseInsensitiveCompare: (pretty much must be a string). You can check that everything responds to the selector by going through the...
ios,objective-c,facebook,unrecognized-selector
Found the issue! I was migrating from Facebook SDK v3.4 to v4. As I had a view already done for the previous login Button, I just recycled it and changed the class as the tutorial says. Deleting the view from the Storyboard, adding a new view and changing class to...
ios,swift,unrecognized-selector
The name of the selector should be "naamInModelChangedHandler:". Note the : since naamInModelChangedHandler takes an NSNotification as an argument. Therefore, you should add the observer like so: NSNotificationCenter.defaultCenter().addObserver( self, selector: "naamInModelChangedHandler:", name: "NAAM_CHANGED", object: model) ...
ios,objective-c,cocoa-touch,uitableview,unrecognized-selector
Based on the output of your data, you have an extra array in there. So you want this: cell.textLabel.text = self.filteredContent[indexPath.row][0][@"recipeName"]; Each element of your filteredContentArray is another array. Each of those inner arrays has the dictionary with the data you want....
ios,objective-c,ios8,nsuserdefaults,unrecognized-selector
Change this line [Util setSubProductsArrayPreference:myArray forKey:[NSString stringWithFormat:@"%@",productId]]; ...
ios,objective-c,segue,unrecognized-selector
Object for key kMotivo is NSArray in your code. You are assigning it to NSString property and afterward to UILabel text property. UILabel tries to call length on NSArray and crash with an exception. Something like following will work: NSArray *motives = [reasonsDictionary objectForKey:kMotivo]; if (motives != nil && motives.count...