草庐IT

objc_selector

全部标签

ios - -[UIView setAdUnitID1 :]: unrecognized selector sent to instance

我已经创建了一个UIViewlibLinOneSdk.a的静态库。所以当我使用它的属性或功能时,我会崩溃。但如果我使用LinDFPBanner.m一切正常,在Storyboard中我也将它卡在了nib中。我进行了搜索,但不知道为什么在静态库中会发生这种情况。问题可能出在库搜索路径。任何人都可以帮助我如何提供库搜索路径。self.linBannerView.adUnitID1=@"XXXX";self.linBannerView.rootViewController1=self;此外,应用程序在ipodtouch5和ipadmini中运行良好。在模拟器和iphone5s中崩溃。这可能是建

ios - Objc EXC_BAD_ACCESS 将 NSString 设置为等于另一个时

我在使用NSString时遇到了一些非常非常奇怪的问题。当我从输入流中读取并将数据转换为字符串时,我无法设置任何等于该字符串的值。这是代码:NSString*name=r.URL.lastPathComponent;NSString*data;NSInputStream*stream=r.HTTPBodyStream;uint8_tbyteBuffer[1];[streamopen];if(stream){//Gettherequestbodyfromthestream.Usedforsettingthefilenameif(stream.hasBytesAvailable){NSIn

iOS - [Fabric firebaseMode] : unrecognized selector sent to instance

我尝试按照此处提供的手动说明集成Crashlytics3.9.0ManualSteps.我看到集成成功并且能够强制应用程序崩溃,但是,当应用程序下次启动时,我在结构中看到以下崩溃。堆栈跟踪如下:[Crashlytics]Version3.9.0(125)[Crashlytics:Crash:Reports]Packagedreportwithidforsubmission[Crashlytics:Crash:Reports]Submittingreport[Crashlytics:Crash:Reports]Submittingasync/var/mobile/Containers/D

ios - -[_UIFlowLayoutSection 中心] : unrecognized selector sent to instance

我该如何修复这个崩溃:-[_UIFlowLayoutSectioncenter]:unrecognizedselectorsenttoinstance.我在做:UICollectionViewFlowLayout*collectionLayout=[[UICollectionViewFlowLayoutalloc]init];collectionLayout.minimumInteritemSpacing=0.0;collectionLayout.minimumLineSpacing=0.0;collectionLayout.sectionInset=UIEdgeInsetsMake(

ios - _OBJC_CLASS_$_SBJsonParser 从 : error 引用

当我尝试在Xcode中编译我的项目时出现以下错误。Undefinedsymbolsforarchitecturei386:_OBJC_CLASS_$_SBJsonParserreferencedfrom:…我尝试了以下但问题仍然存在?感谢任何帮助。删除了“NSObject+SBJSON.m”和“NSString+SBJSON.m”文件并添加回构建阶段的编译源。在build设置中为有效架构添加了i386。尝试使用-all_load链接器标志 最佳答案 确保将SBJsonWriter.m、SBJsonParser.m和SBJsonBas

ios - 架构 armv7 的 undefined symbol : "_objc_readClassPair", 引用自 : __ARCLite__load() in libarclite_iphoneos. a(arclite.o)

我正在iOS应用程序中集成OpenCV框架,用于示例图像处理应用程序。但我收到以下错误:enterUndefinedsymbolsforarchitecturearmv7:"_objc_readClassPair",referencedfrom:__ARCLite__load()inlibarclite_iphoneos.a(arclite.o)我正在使用Xcode7.0和基础SDK8.3 最佳答案 尝试在build设置中关闭“隐式链接Objective-C运行时支持”。 关于ios-架

iphone - 圆弧错误 : receiver type for instance message does not declare a method with selector

我遇到了这个我无法弄清楚的错误。error:AutomaticReferenceCountingIssue:Receivertype'pageAppViewController'forinstancemessagedoesnotdeclareamethodwithselector'createContentPages'我在下面发布了我的代码。我的类pageAppViewController中确实有一个名为createContentPages的方法。这是什么意思,是什么原因造成的?//contentViewController.m#import"contentViewController

iphone - 代码错误 : No visible @interface for masterViewController declares the selector

我遇到了一个似乎相当普遍的问题,但我无法弄清楚我的代码具体有什么问题。我搜索了stackoverflow并阅读了至少十几篇与我的相似的帖子,但我无法弄清楚我的个人问题。基本上,我试图将NSMutableDictionary从模态视图传递到主视图。这是代码:QuoteMasterViewController.h:@classQuoteModalViewController;@interfaceQuoteMasterViewController:UITableViewController@endQuoteMasterViewController.m:#import"QuoteMasterV

ios - -[__NSCFConstantString 大小] : unrecognized selector sent to instance . ..?

redSegmentedControl.mredSegmentedControl.h现在,我在另一个Controller中编写代码//self.segmentedControl=[[redSegmentedControlalloc]initWithFrame:CGRectMake(0,140,320,50)];self.segmentedControl=[[redSegmentedControlalloc]initWithSectionImages:@[@"list.png",@"list.png",@"list.png"]sectionSelectedImages:@[@"list.

ios - sqlite 3 "SQL error ' 内存不足' (7)"objc

嗨,有人能指出我做错了什么吗?错误是这样的:SQLerror'outofmemory'(7)-(NSArray*)RecipeInfo{NSMutableArray*retval=[[NSMutableArrayalloc]init];NSString*query=[NSStringstringWithFormat:@"SELECTkey,nameFROMrecipesWHEREtype=\'%@\'",self.RecipeType];NSLog(query);sqlite3_stmt*statement;if(sqlite3_prepare_v2(_database,[queryU