草庐IT

sent-messages

全部标签

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

iphone - LinkedIn Integration r_network 和 w_messages 请求不能在 iOS sdk 中协同工作

我已经完成了LinkedIn集成,我必须向特定用户发送消息。为此,我首先获取连接,然后发送消息。(void)requestTokenFromProvider{OAMutableURLRequest*request=[[[OAMutableURLRequestalloc]initWithURL:requestTokenURLconsumer:self.consumertoken:nilcallback:linkedInCallbackURLsignatureProvider:nil]autorelease];[requestsetHTTPMethod:@"POST"];OARequest

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

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

ios - [ViewController gestureRecognizer :shouldRecognizeSimultaneouslyWithGestureRecognizer:]: message sent to deallocated instance

我有一个简单的场景。我将myViewController插入导航堆栈。myViewController基本上是在整个屏幕上显示一个CollectionView。我在此CollectionView上添加了一个额外的UIPanGestureRecognizer并将myViewController设置为其委托(delegate)。我在myViewController中保留了对平移手势识别器的强烈引用。当我点击返回时,myViewController从导航堆栈中弹出并释放。myViewController的dealloc方法被正确调用。到目前为止,一切都按预期工作。然后我尝试像第一次一样打开相

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 - 使用电话提示 ://to make a call (editing message)

我有一个非常简单的问题,但可能很难回答。是否可以编辑使用“telprompt”时抛出的消息。我的首要任务是我想打个电话,打完电话后我想返回到应用程序本身,而不是Apple手机应用程序。但是当我使用webView或telprompt方法时,它会抛出一条消息。我想这是出于安全原因,这很好。但是消息只显示一个电话号码和两个按钮。我想在这里加个名字什么的。这可能吗?怎么办?提前致谢。 最佳答案 不,你不能。期间。(闲聊闲聊以达到字符数限制) 关于ios-使用电话提示://tomakeacall(

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

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

Git 合并时出现 Please enter a commit message to explain why this merge is necessary 问题解决

1. 报错现象2. 报错文字mergebrach"dev"#Pleaseenteracommitmessagetoexplainwhythismergeisnecessary,#especiallyifitmergesanupdatedupstreamintoatopicbranch.##Linesstartingwith'#'willbeignored,andanemptymessageaborts#thecommit.~~~--INSERT--recording大概的意思如下:#请输入一个提交消息来解释为什么合并是必要的,#特别是当它合并一个更新的上游到一个主题分支。##以“#”开头的行将