unrecognized-selector Questions

41

Solved

I created a button and added an action for it, but as soon as it invoked, I got this error: -[NSCFDictionary numberButtonClick:]: unrecognized selector sent to instance 0x3d03ac0 2010-03-16 22:23...
Swallow asked 16/3, 2010 at 14:31

4

Solved

I have been going through all stack overflow trying to solve this but none of the solutions work. class ToastView: UIView { static func showInParent(parentView: UIView!, withText text: String, f...
Hypotension asked 4/7, 2016 at 11:33

2

Solved

First of all I have seen that there are many questions about "unrecognized selector sent to instance" issue. I have seen few but saw nothing about accessing a defined in category property... I hav...

1

Solved

I recently updated Xcode to version 11.3.1 and after that i am not able to run my application. I've been getting the following exception: 2020-02-11 16:13:04.767795-0600 UVM[5204:80616] -[ECSlidin...
Bloodstain asked 11/2, 2020 at 22:18

5

Solved

-(void)transformObjects:(NSMutableArray*)array key:(NSString*)key { NSMutableArray* archiveArray = [[NSMutableArray alloc]initWithCapacity:array.count]; for (Furniture *furniture in array) { /...
Ferrocyanide asked 4/3, 2014 at 10:6

1

I am getting #560 NSInvalidArgumentException error as shown below; -[_NSObserverList setCursorPosition:]: unrecognized selector sent to instance 0x1702a6ea0 CoreFoundation ___exceptionPreprocess ...

4

Solved

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 work...
Joashus asked 2/10, 2015 at 11:8

2

Solved

I'm trying to calculate duration difference between two times. I get the durations from JSONArray. I use the below code NSDate *starttime = [[NSDate alloc]init]; NSDate *endtime = [[NSDate alloc]...
Soteriology asked 20/12, 2016 at 10:11

3

Solved

I would like to get all records for the current month, so I stack two predicates for first date of the month and last day of the month. Since I use CoreData the dates are stored actually as NSTimeI...
Beaner asked 25/10, 2013 at 18:18

6

Solved

First of all, I tried almost all the solutions given in stackoverflow but I didn't succeed in implement global vars, I even did a step by step tutorial and still I get the same errors. heres the i...
Arraign asked 26/10, 2013 at 8:16

1

Solved

In my iOS app I have created a table view controller with custom cells where one of them contains a PickerView. Here's the class for that custom cell: import Foundation import UIKit class Picke...
Opsonin asked 11/9, 2015 at 11:39

1

I want to add an image to UIAlertController. Image does not need to be on a button, just presented in the middle of the controller. The code I have is below but crashes with message "unrecogn...
Jerilynjeritah asked 17/8, 2015 at 20:40

2

Solved

Problem This question may seem a bit long, but I try to give as much information as possible, since I am really staggered by this. I am currently working an a library which should automate XML do...

2

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...
Discountenance asked 4/5, 2012 at 4:16

1

Solved

I have a UITableView fed from Core Data with an NSFetchedResultsController returning the Location entities. The default sorting (and section headers) is via the first letter of the entity's name. T...

1

Solved

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.canDisplayBannerA...
Showcase asked 16/2, 2014 at 21:11

1

@interface PromotionsListViewController : UITableViewController - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdenti...
Guiscard asked 16/1, 2014 at 6:53

2

Solved

The following in viewWillAppear [SYPTableView setSeparatorInset:UIEdgeInsetsZero]; Works fine on iOS 7 but on 6.1 it raised the exception : NSInvalidArgumentException', reason: '-[UITableVie...
Planetary asked 4/11, 2013 at 6:38

2

The following code is to add a subview to current view from storyboard: EventSearchViewController* view1 = [self.storyboard instantiateViewControllerWithIdentifier:@"searchView"]; [view1 setBooki...
Kalli asked 26/5, 2012 at 12:45

2

Solved

TL&DR; Setting a custom property of a subclass of UIBarButtonItem using UIAppearance proxy is causing the "unrecognized selector" exception, beause the setter is probably being forwarded by UIAppe...
Cleotildeclepe asked 13/8, 2013 at 8:39

5

I have code distributed in a library which looks like this: if ([[NSString class] instancesRespondToSelector: @selector(JSONValue)]) { NSString *jsonString = [[[NSString alloc] initWithData: json...
Plata asked 9/4, 2013 at 7:34

3

Solved

In Objective-C, is there a way to set a default hander to avoid unrecognizedselector exception ? I want to make the NSNULL and NSNumber to response all the methods in NSString. Thanks!
Arachne asked 15/11, 2012 at 4:2

1

Solved

My iOS app crashes when I: present my "Login" view controller in a navigation controller enter text into a UITextField on it, then try and fail the login pop back to the above view controller pus...
Shanteshantee asked 3/7, 2012 at 21:3

2

Solved

I have the following code which is producing this error. I cannot understand why the subarrayWithRange message is being sent to a string? When it is clearly an array? static const int kItemsPerVie...
Lupine asked 4/10, 2010 at 19:41

3

Solved

I have an app in the app store that I'm using Flurry analytics on. And I keep getting an unhandled exception error from time to time that I can't figure out. NSInvalidArgumentException: -[UIBarBut...
Jeanette asked 17/12, 2011 at 14:52

© 2022 - 2024 — McMap. All rights reserved.