草庐IT

c0_selector

全部标签

ios - 解析 v1.7.4 和 Facebook SDK NSInvalidArgumentException',原因 : '+[NSData PF_dataFromBase64String:]: unrecognized selector sent to class

将FB和ParseSDK升级到最新版本后,出现此错误。我知道这发生在我的应用委托(delegate)中的以下方法中。我有一个混合的swift和objectivec应用程序,我的委托(delegate)是用objectivec编写的,当我正在为下一个版本工作时,我正在用swift转换和编写新类。如果我注释掉下面的处理程序,则不会发生错误,但我会收到一条登录失败消息,这正是我所期望的。按下登录按钮后,将出现用于授权应用程序的Facebook页面,然后返回到ViewController,正是在此时完成以下方法时发生错误。我理解这个错误的含义,因为在一个没有它的类上调用了一个选择器。我遇到的问

ios - Swizzling 符合 UI_APPEARANCE_SELECTOR 的属性

我正在尝试调整UIView上的backgroundColor属性。在我调酒之前,我执行以下操作:@implementationUIView(Cat1)+(void)load{NSArray*selectors=@[//HighliterswizzlingNSStringFromSelector(@selector(setBackgroundColor:)),NSStringFromSelector(@selector(backgroundColor))];[[selfappearance]setBackgroundColor:[UIColorredColor]];for(NSStrin

javascript - React Native Expo 弹出 : No visible @interface for 'RCTAsyncLocalStorage' declares the selector 'initWithStorageDirectory:' 后问题

我刚从expo中退出,一切顺利,但当我尝试在Xcode中运行我的ios应用程序时,我现在遇到以下错误:Novisible@interfacefor'RCTAsyncLocalStorage'declarestheselector'initWithStorageDirectory:'这是我的package.json的一部分"dependencies":{"axios":"^0.17.1","expo":"^23.0.6","lodash":"^4.17.4","moment":"^2.20.1","react":"16.0.0","react-native":"0.50.3","reac

ios - 核心数据错误 : -[myclass encodeWithCoder:]: unrecognized selector sent to instance

我有一个自定义类MyClass,它基本上由几个NSMutableArrays组成,没有其他变量。我有一个实体MyEntity,它有一个属于MyClass的ivar。当我尝试保存实体时,我得到了这个堆栈转储:0CoreFoundation0x0118ebe9__exceptionPreprocess+1851libobjc.A.dylib0x012e35c2objc_exception_throw+472CoreFoundation0x011906fb-[NSObject(NSObject)doesNotRecognizeSelector:]+1873CoreFoundation0x01

ios - [MyClassName copyWithZone :]: unrecognized selector sent to instance?

我刚刚实现了我的类(class)@interfaceExampleNestedTablesViewController(){NSMutableArray*projectModelArray;NSMutableDictionary*sectionContentDictionary;}-(void)viewDidLoad{[superviewDidLoad];ProjectModel*project1=[[ProjectModelalloc]init];project1.projectName=@"Project1";ProjectModel*project2=[[ProjectModel

ios - 编译时错误 : No known instance method for selector 'setDetailItem:'

在Xcode5.0.2中,我为iPhone创建了一个空白的Detail-Master应用。然后在Main.storyboard中,我将UILabel替换为UIWebView,并在DetailViewController.h中将其声明为webView.我还用NSDictionary*dict替换了id*defaultItem:#import@interfaceDetailViewController:UIViewController@property(strong,nonatomic)NSDictionary*dict;@property(weak,nonatomic)IBOutletU

ios - 谷歌分析 IOS 跟踪事件错误 No visible @interface for 'GAIDictionaryBuilder' declares the selector 'set:value:'

我正在按照此处包含的说明进行操作https://developers.google.com/analytics/devguides/collection/ios/v3/campaigns#url-builderXcode拒绝编译因为这条语句[hitParamsset:kGAICampaignMediumvalue:@"referrer"];给出这个错误:Novisible@interfacefor'GAIDictionaryBuilder'declarestheselector'set:value:'kGAICampaignSource也是如此我看到“正确”的调用可能是这两个[hitP

ios - [UITableViewCell nameLabel] : unrecognized selector sent to instance

我想知道有没有人知道如何解决这个问题?***Terminatingappduetouncaughtexception'NSInvalidArgumentException',reason:'-[UITableViewCellnameLabel]:unrecognizedselectorsenttoinstance0x7fa9ca4936c0'我的代码是:(UITableViewCell*)tableView:(UITableView*)foldertableViewcellForRowAtIndexPath:(NSIndexPath*)indexPath{staticNSString*

ios - objc中如何判断一个selector包含在一个protocol中?谢谢

出于某种原因,我想将所有UITableViewDelegate方法转发给另一个对象。这是我写的代码,但是因为UITableViewDelegate中有太多方法。我必须写很多ifelse比较每个方法。-(id)forwardingTargetForSelector:(SEL)aSelector{NSString*selector=NSStringFromSelector(aSelector);if([selectorisEqualToString:@"tableView:didSelectRowAtIndexPath:"]){returnself.outDelegate;}else{re

iphone - 指针指向不同的对象 : (Unrecognized selector sent to instance)

当我尝试在我的对象pageModel上调用此函数时,我的应用程序发生了奇怪的崩溃[pageModelpageTitle]isEqualToString:@"sometext"];这是调试器转储-[__NSArrayMisEqualToString:]:unrecognizedselectorsenttoinstance0x661de40***Terminatingappduetouncaughtexception'NSInvalidArgumentException',reason:'-[__NSArrayMisEqualToString:]:unrecognizedselectors