草庐IT

money_sent

全部标签

ios - 来自 UIBarButtonItem 的 "unrecognized selector sent to instance"

我知道这个问题已经被问过很多次了。但我似乎无法克服这个错误。我使用ObjectiveC在我的应用程序的早期版本中运行它。下面的两个方法都在同一个UIViewController中。ViewController还作为RootViewController的引用,是UINavigationController的一部分。funcloadEditView(sender:AnyObject,animated:Bool=true){vareditViewController:EditViewController=EditViewController()//setsomestuffupself.nav

ios - 获取错误 [UIImage 范围] : unrecognized selector sent to instance

我正在尝试对我的UIImageView应用径向模糊,但是当我尝试这样做时出现错误[UIImageextent]:unrecognizedselectorsenttoinstance我使用的代码来自以下示例:https://developer.apple.com/documentation/coreimage/selectively_focusing_on_an_imageleth=bgImage.image!.size.heightletw=bgImage.image!.size.widthguardletradialMask=CIFilter(name:"CIRadialGradie

ios - "unrecognized selector sent to instance" swift

我没有收到任何错误或任何错误,但是当我运行该应用程序时它崩溃了。我得到的日志是“由于未捕获的异常‘NSInvalidArgumentException’而终止应用程序,原因:‘-[MPConcreteMediaItemimageWithSize:]:无法识别的选择器发送到实例0x14eefa3b0’”。我认为导致这个问题的是这一行:cell?.imageView?.image=sortedResults[indexPath.row].imageWithSize(imageSize)因为当我删除它/取消注释时,一切正常。imageSize是一个CGSize变量。整个代码:letstart

ios - UISwipeGesture 'unrecognized selector sent to instance'

如果有人能帮我解决这个问题,那就太好了!我花了几个小时试图修复,但没有成功错误...2016-06-2320:30:43.341057ScalingRings[408:38903][DYMTLInitPlatform]platforminitializationsuccessful2016-06-2320:30:43.750822ScalingRings[408:38776]MetalGPUFrameCaptureEnabled2016-06-2320:30:43.751531ScalingRings[408:38776]MetalAPIValidationEnabled2016-06

macos - [NSSearchField 对象] : unrecognized selector sent to instance

我正在一个简单的Mac应用程序中测试Swift。我在Storyboard中得到了一个NSToolbar并在里面画了一个NSSearchfield。NSSearchfiled连接到第一响应者的方法controlTextDidChange(第一响应者是我添加了NSTextFieldDelegate的ViewController)。这是方法:@IBActionoverridefunccontrolTextDidChange(obj:NSNotification!){println("searching...")println(obj.object.stringValue)}每次搜索新角色时都

ios - 另一个 "unrecognized selector sent to instance"

Edit3:Forotherpeoplegettingthiserror,thisiswhathappenedhere.IoriginallycreatedtheIBActionfortheslideras"numberOfSounds".Ithencreatedaclasspropertycalled"numberOfSounds"andrenamedtheIBActionto"sliderValueChanged".Iexpectedtheconnectiontoautomaticallyupdatetheconnection,BUTITDOESN'T.So,sinceIdumbl

ios - 为什么我的 segue 导致 "unrecognized selector sent to instance"NSInvalidArgumentException?

尝试使用segue从我的第一个ViewController移动到我的第二个ViewController(都使用相同的Storyboard)。我的第一个ViewController有两个按钮,一个表示“男性”,一个表示“女性”(我知道,不是每个人都与这两个中的一个相关联),我希望其中一个按钮在单击后移动到第二个ViewController。我将按钮拖/放到我的代码中以获得以下内容:@IBActionfuncfemaleButton(_sender:AnyObject){Globals.onboardingList.append("girl")print("it'sagirl!")perf

ios - '-[CIContext initWithOptions :]: unrecognized selector sent to instance

我用它来生成一个大图像:letcontext=CIContext(options:nil)letbitmapImage:CGImageRef=context.createCGImage(image,fromRect:extent)!CGContextSetInterpolationQuality(bitmapRef,CGInterpolationQuality.None)CGContextScaleCTM(bitmapRef,scale,scale);CGContextDrawImage(bitmapRef,extent,bitmapImage);letscaledImage:CGIm

ios - 更新后结构崩溃 : [Fabric isCrashlyticsCollectionEnabled]: unrecognized selector sent to class 0x10c0bb918

今天fabric在pod更新后崩溃Fabric1.9.0[FabricisCrashlyticsCollectionEnabled]:unrecognizedselectorsenttoclass0x10c0bb918崩溃线:Fabric.with([Crashlytics.self])它在应用程序启动时崩溃。有人遇到同样的问题吗? 最佳答案 我通过更新我的Podfile恢复到以前版本的Crashlyticspod'Fabric','1.8'pod'Crashlytics','3.11'然后更新Cocoapods:pod更新“Cra

ios - [UIViewController TableView :numberOfRowsInSection:]: unrecognized selector sent to instance

我有一个连接到某些项目的标签栏View。我希望其中一个项目包含TableView,但我不想使用TableViewController,因为我想在页。我的ViewController实现了UITableViewDataSource和UITableViewDelegate这两个协议(protocol),并包含以下功能:functableView(_tableView:UITableView,numberOfRowsInSectionsection:Int)->Int{//Returnthenumberofrowsinthesection.returnannunci.count}functa