草庐IT

instance_methods

全部标签

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 - 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

ios - 如果实现 prefersStatusBarHidden : method,何时调用 setNeedsStatusBarAppearanceUpdate

关于隐藏状态栏的文档说我应该实现这个方法overrideprefersStatusBarHidden(){returntrue}然后它说:如果您更改此方法的返回值,请调用setNeedsStatusBarAppearanceUpdate方法。我应该什么时候调用此方法,在viewDidLoad中,在prefersStatusBarHidden中或其他地方? 最佳答案 在大多数情况下,您根本不需要调用setNeedsStatusBarAppearanceUpdate()。当您的ViewController出现或消失时,iOS会自动检查p

ios - 从 Method 到 SEL 的类型转换

我正在使用Objective-C运行时库函数class_copyMethodList()来获取我的类中所有方法的列表。然后如何将这些类型Method对象转换为可用类型SEL对象? 最佳答案 在返回的Method对象上运行函数method_getName()。 关于ios-从Method到SEL的类型转换,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/8044374/

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 - Apple 的 doCipher 示例代码中的不良做法 :key:context:padding method

根据这篇文章http://blog.gdssecurity.com/labs/2013/3/5/retrieving-crypto-keys-via-ios-runtime-hooking.htmlApple的doCipher:key:context:padding方法示例代码中存在“错误做法http://developer.apple.com/library/ios/#samplecode/CryptoExercise/Listings/Classes_SecKeyWrapper_m.html”。以下代码片段显示它将使用16字节0x0的静态IV。//Initializationvec

objective-c - Objective-C : Sending arguments to a method called by a UIButton

我有一个在单击UIButton时调用的方法。当我创建按钮时,我希望它存储一个NSTimer作为参数。这是计时器和UIButton的创建。我将如何添加要发送到该方法的计时器?我试过withObject:timer但它给了我一个警告并在运行时崩溃。NSTimer*timer=[NSTimerscheduledTimerWithTimeInterval:(0.009)target:selfselector:@selector(moveStickFig:)userInfo:stickFigrepeats:YES];[stickFigaddTarget:selfaction:@selector(