草庐IT

any_instance

全部标签

ios - NSError 版本 : message sent to deallocated instance

我在iOS7应用程序上遇到崩溃并出现以下错误:-[NSErrorrelease]:messagesenttodeallocatedinstance0x3c443fe0当我添加对以下方法的调用时引发错误:-(void)loadMessages:(NSString*)customerUID{NSString*formatUID=[NSStringstringWithFormat:@"%s%@%s","'",customerUID,"'"];formatUID=[formatUIDstringByReplacingOccurrencesOfString:@"'"withString:@"%2

ios - [GADSlot 状态] : unrecognized selector sent to instance in iphone

我是iOS开发新手。我正尝试在我的phonegap应用程序中在iOS中实现admob广告,所以我用谷歌搜索并找到了somveadmobwithoutplugin.完成所有程序后,我收到错误MyApp[2388:70b]*由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[GADSlot状态]:无法识别的选择器发送到实例0x10415920”**所以我用谷歌搜索并发现我必须更改其他链接器标志。(-ObjC)here我已经试过了,但还是不行。我遇到了这个错误。此解决方案也不适合我。[GADSlotstate]:unrecognizedsele

iOS 6.1/7 - Cordova 3.1.0 + AngularJS - 单击/滚动到具有 [NSCFSet opacity] : unrecognized selector sent to instance 的 HTML/CSS View 时应用程序崩溃

我们看到了这个奇怪的错误,我在网上找不到任何东西。只有一个帖子没有答案或解决方法:https://groups.google.com/forum/#!topic/phonegap/7pRzASZpnQc我们使用Angular、Underscore、angular-route、angular-touch、angular-animate、CSSFlex布局和Cordova3.1.0构建了一个应用程序,并且在Android4.0++上一切都运行得很好。当我们将iOS转移到Mac上并添加iOS平台时,我们在XCode5中编译,当我们在6.1和7的iPhone模拟器中单击或尝试滚动时,应用程序在

ios - google+ iphone 应用程序 url 方案 (mgc ://) support any parameters?

我希望能够启动google+iphone应用程序并告诉它进入“撰写”模式并为其提供一些消息的默认文本。我可以使用mgc://url方案启动它,并尝试了一堆url格式,但除了启动之外什么也做不了。有人找到什么了吗? 最佳答案 这是旧的!Priyanka-无法访问应用,但有一个使用浏览器的iOS共享库,但为您提供了很好的控制权:developers.google.com/+/mobile/ios/分享看看:-(IBAction)didTapShare:(id)sender{idshareBuilder=[[GPPSharesharedI

ios - NSInvalidArgumentException "Unrecognized selector sent to instance"(使用 MPMoviePlayerController)

好吧,我在RootViewController和DetailViewController中有一个TableView,用于显示单条记录的信息。根据本指南,在详细信息页面中,我必须播放多媒体文件并且我正在使用框架MediaPlayer:http://www.techotopia.com/index.php/Video_Playback_from_within_an_iOS_4_iPhone_Application看起来一切正常,但是当我点击播放按钮时出现这个错误:-[DetailsViewControllerplaymovie]:unrecognizedselectorsenttoinst

ios - 如何定位 "unrecognized selector sent to instance"的错误在哪里?

有时我的应用程序会因为这个错误日志而崩溃:-[NSNullfloatValue]:unrecognizedselectorsenttoinstance0x3befd090我没有调用任何“floatValue”,那么我如何才能找到使应用程序崩溃的确切行?要重现崩溃需要一些我无法控制的网站的特定数据,那么有什么办法可以解决这个问题吗?谢谢。 最佳答案 最简单的方法是添加异常断点。转到后点Pane,然后单击左上角的opde+。在弹出窗口中选择AddExceptionBreakpoint。只需单击弹出窗口中的Done,您就可以在调试器抛出的

ios - Xamarin 绑定(bind)类别返回错误 : cannot declare instance members in a static class

我正在尝试绑定(bind)ReFrostedViewController到c#。我使用ObjectiveSharpie来生成界面。但是当我使用Xamarin编译它时,它返回错误。/REFrostedViewController_UIViewController.g.cs(10,10):ErrorCS0708:`REFrostedMenu.REFrostedViewController_UIViewController.__mt_FrostedViewController_var':cannotdeclareinstancemembersinastaticclass(CS0708)(RE

error: src refspec master does not match any.处理方案

问题描述在使用gitbash指令将项目上传到github时,总是遇到一些错误无法解决。下面是我遇到的一个问题error:srcrefspecmasterdoesnotmatchany.error:failedtopushsomerefsto'XXXX.git'原因分析:错误:SRCReFSPEC主控器不匹配任何。错误:未能将某些引用推到’git@Github.com:HaHaa/ftpMal.git’也就是仓库为空。解决方案:利用gitaddxxx.py指令,将所有的文件全部都添加,然后再进行gitcommit-m"init"将所有的文件commit,gitcommit-m"init"   然

IDEA 启动报错: Cannot connect to already running IDE instance. Exception : process xxxx is still running

 今早上班突然发现 IntelliJ突然无法使用 我的报错为: CannotconnecttoalreadyrunningIDEinstance.Exception:process 9,564isstillrunning翻译结果为:无法连接到已运行的IDE实例。异常:进程9564仍在运行我的理解就是CPU线程PID9564 已经存在现在直接打开任务管理器  查找PID为9564结束掉进程此时打开IDEA就没问题了,我的是因为飞秋的PID为9564结束掉就能启动IDEA了。

ios - [NSCFString timeIntervalSinceReferenceDate] : unrecognized selector sent to instance

我想比较两个日期之间的差异,但是使用下面的代码我得到了错误“[NSCFStringtimeIntervalSinceReferenceDate]:无法识别的选择器发送到实例。”代码有什么问题?NSDate*dateAdded=[eventDictionaryobjectForKey:@"dateAdded"];NSDate*validUntilDate=[eventDictionaryobjectForKey:@"validUntilDate"];NSDateComponents*sometimeAgo=[[NSCalendarcurrentCalendar]components:(N