草庐IT

class-bound

全部标签

objective-c - 苹果错误 - "_OBJC_CLASS_$_TFHpple"

我的应用程序使用Hpple。我包括了TFHpple.h、TFHpple.m、TFHppleElement.h、TFHppleElement.m、XPathQuery.h和XPathQuery.m。还包括${SDKROOT}/usr/include/libxml2和-lxml2。我有这么一小段代码:NSData*data=[[NSDataalloc]initWithContentsOfFile:@"example.html"];TFHpple*xpathParser=[[TFHpplealloc]initWithHTMLData:data];当我尝试运行它时,我收到此错误:"_OBJC_

ios - ipod Touch 5g 上的应用程序不使用全分辨率 ([UIScreen mainScreen].bounds.height == 480.0)

我们有一个应用程序使用了iphone5的全分辨率并且到目前为止运行良好。现在我们收到测试人员的投诉,说它不能在ipodTouch5g上工作。令人惊讶的是,日志显示[UIScreenmainScreen].bounds返回(320.0,480.0)iphone5上的ipodTouch显示正确的边界(320.0,568.0)?!在此之后,我进行了调查,似乎iOS会查找是否存在带有“-568h”后缀的图像,并决定以信箱模式(320,480)或全分辨率运行(320,568).现在我有一个讨厌的怀疑:我们的高分辨率闪屏图像的名称是Default~iphone-568h@2x.png,根据Appl

ios - Objective-C : how to inherit category methods loaded in a parent class?

在我的项目中,我使用了NSObject+Properties.h类别(参见aqtoolkit:https://github.com/AlanQuatermain/aqtoolkit/blob/master/Extensions/NSObject%2BProperties.h)然后我有一个我声明为的类#import#import"NSObject+Properties.h"@interfaceGFDictionaryInitiable:NSObject...然后我有几个GFDictionaryInitiable的子类,例如GFRestaurant:#import#import"GFDic

ios - UITableView 数组返回错误 'index 0 beyond bounds for empty array'

我已经在我的MatchCenterViewController中以编程方式创建了一个UITableView,但是它似乎没有填充我的云代码函数返回的JSON数据。它崩溃并给我以下错误:2014-06-0820:56:23.762Parse+Storyboard[9136:607]***Terminatingappduetouncaughtexception'NSRangeException',reason:'***-[__NSArrayIobjectAtIndex:]:index0beyondboundsforemptyarray'***Firstthrowcallstack:(0Cor

ios - 所有子类的 class_copyPropertyList 也

这里是解释ListofclasspropertiesinObjective-C如何使用class_copyPropertyList在运行时获取类的所有属性。我已经测试过了,它工作正常。我注意到它只会从该类获取属性,而不是它的子类。代码:@interfaceJustForThisUT:NSObject@propertyNSUIntegerpublic_access;@end@interfaceJustForThisUT()@propertyNSUIntegerprivate_access;@end@implementationJustForThisUT@end@interfaceJust

ios - NSDate 是 MemberOfClass : [NSDate class] returns false?

这个问题在这里已经有了答案:usageofisMemberOfClass;returningfalse(3个答案)关闭7年前。这很奇怪。以下if语句失败。有什么问题吗?NSDate*date=[NSDatedate];if([dateisMemberOfClass:[NSDateclass]]){//Notexecuted.}

ios - 将 "class"消息发送到类的实例是什么意思

在Facebook登录代码中https://developers.facebook.com/docs/facebook-login/ios/advanced,他们要求我们执行以下序列通过Storyboard声明将要显示的View属于“FBSDKLoginButton”类。在应用委托(delegate)didFinishLaunchingWithOptions中执行以下行。[FBSDKLoginButtonclass];向对象发送“类”消息是什么意思? 最佳答案 用于调用FBSDKLoginButton的initialize方法。+(

ios - 覆盖函数错误!方法不会覆盖其父类(super class)中的任何方法

overridefunctouchesBegan(touches:Set,withEventevent:UIEvent){}overridefuncsupportedInterfaceOrientations()->Int{}这里我有一个错误。它说Methoddoesnotoverrideanymethodfromitssuperclass.多次出现,我无法修复。你知道吗? 最佳答案 错误来了,因为你的方法签名与实际的不同。您应该使用确切的方法签名进行覆盖(您应该使用Xcode中提供的自动完成功能或引用文档)TouchesBegan

objective-c - "This class is not key value > coding-compliant for the key previewB"但我已经删除了 previewB

我从nib文件中删除了一个按钮。我还删除了与该按钮关联的socket和IBAction。我已经清理了我的项目并卸载了该应用程序。但是我仍然收到以下错误消息:Terminatingappduetouncaughtexception'NSUnknownKeyException',reason:'[setValue:forUndefinedKey:]:thisclassisnotkeyvaluecoding-compliantforthekeypreviewB.'但是如果我在我的工作区中搜索previewB,我找不到任何东西。我已将其从ComposerViewController中删除。谢谢

iphone - iOS5 ARC 应用程序 : __NSAutoreleaseNoPool(): of class NSCFNumber autoreleased with no pool in place - just leaking

我最近为我的应用程序项目切换到ARC。我正在使用iOS5SDK。运行一台iPod4g设备我没有收到任何警告。但是尝试在iPod2g上运行我的应用程序时,我收到了很多警告:***__NSAutoreleaseNoPool():Object0x258070ofclassDataModelautoreleasedwithnopoolinplace-justleaking***__NSAutoreleaseNoPool():Object0x2530a0ofclass__NSArrayMautoreleasedwithnopoolinplace-justleaking***__NSAutorel