草庐IT

authlogic_openid_selector_example

全部标签

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

iphone - "unrecognized selector sent to instance"键盘出现时

当我在我的应用程序屏幕中单击一个文本字段并且键盘出现时,xcode调试器显示此错误:[mainViewControllerkeyboardWasShown]:unrecognizedselectorsenttoinstance0x5867ac0在mainViewController的viewDidLoad方法中,我这样调用registerForKeyboardNotifications方法:[自行注册键盘通知];这是它的实现(在mainViewController.m中):-(void)registerForKeyboardNotifications{[[NSNotificationC

ios - [__NSCFString objectForKey :]: unrecognized selector sent to instance

关闭。这个问题需要debuggingdetails.它目前不接受答案。编辑问题以包含desiredbehavior,aspecificproblemorerror,andtheshortestcodenecessarytoreproducetheproblem.这将有助于其他人回答问题。关闭8年前。Improvethisquestion我在这里遇到这个错误+(CGFloat)heightForViewWithObject:(id)objectinColumnWidth:(CGFloat)columnWidth{NSString*titleText=[objectobjectForKey

iphone - CoreDataGeneratedAccessor 方法给出 "unrecognized selector sent to instance"错误

当我调用方法时:-(void)removeObjectFromMediaAtIndex:(NSUInteger)idx;这是作为核心数据对象创建的文件中的默认方法之一,我收到错误消息:无法识别的选择器发送到实例。有人知道为什么会这样吗? 最佳答案 确保您的NSManagedObject子类实例是使用NSManagedObjectContext而不是直接创建的。NSManagedObject子类没有利用@synthesize属性,而是利用了@dynamic关键字,这表明访问器将在运行时创建——在本例中,由NSManagedObject