xcode工程编译错误:"An instance 0xca90200 of class UITableView was deallocated while key value observers were still registered with it"

An instance 0xca90200 of class UITableView was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. Here‘s the current observation info:

<NSKeyValueObservationInfo 0xd253ef0> (

<NSKeyValueObservance 0xc5ea1f0: Observer: 0xc5e9560, Key path: contentOffset, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0xd249490>

<NSKeyValueObservance 0xd26a430: Observer: 0xd241970, Key path: contentSize, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0xd251df0>

<NSKeyValueObservance 0xd26a470: Observer: 0xd241970, Key path: contentOffset, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0xd249490>

)

翻译的意思大概就是,uitableview注册了观察者,然后没有被注销掉,又开始重复使用了,我是这么理解的。
我这个页面的功能很简单。就是从列表页面进入到详情页,然后详情页的布局是一个scrollview上放了一个uitableview,uitableview继承了上拉刷新。
我发现这个问题的由来: 当我第一次点详情页后,然后返回,第二次进去,然后返回,次数多了以后。然后就Collapse崩溃了。

解决方法:

- (void)dealloc{

[_header free];

[_footer  free];
}

时间: 2024-08-12 00:18:33

xcode工程编译错误:"An instance 0xca90200 of class UITableView was deallocated while key value observers were still registered with it"的相关文章

旧Mj下拉刷新 An instance 0xca90200 of class UITableView was deallocated while key value observers were s

An instance 0xca90200 of class UITableView was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to

An instance 0x172b8600 of class UITableView was deallocated while key value

从带有tableview并且使用Mj下拉刷新的视图调用popViewControllerAnimated的时候,控制台打印这个: An instance 0x15d7aa00 of class UITableView was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached

xcode工程编译错误:No architectures to compile for

问题 开发环境:xcode6,iPhone6模拟器 xcode工程编译错误:No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386). 原因 导致这个错误的原因主要是CPU的编译架构引起的,Build Active Architecture Only属性设置为了YES(只编译当前模拟器指令集),当出现不兼容设备时就会出现错误. 解决 在工程Build Settings,

Xcode工程编译错误:“Cannot assign to &#39;self&#39; outside of a method in the init family”

#import <Foundation/Foundation.h> @interface EOCRectangle : NSObject<NSCoding> @property (nonatomic , readonly , assign) float width; @property (nonatomic , readonly , assign) float height; -(id)initWithWidth:(float) width andHeight:(float) he

Unity打包xcode工程编译错误整理

Unity打包xcode工程二次开发遇到的问题及解决办法 1.library not found for -liPhone-lib 这个是libary路径的问题,打包的时候自行为路径加了引号"$(SRCROOT)/Libraries" 解决办法,将libary search path 下的路径引号去掉$(SRCROOT)/Libraries 2.openGL引用的错误,发送在xcode6,xcode对类库进行了升级造成openGLS改名了 解决办法,把原来的替换掉 #import &l

xcode工程编译错误:一般错误总结

1.Apple LLVM 8.0 Error Group /'all-product-headers.yaml' not found 最近升级了xcode打包后出现了个BUG,记录解决的方法. 现象:报错误信息:"......'all-product-headers.yaml' not found" 原因:新增加了第三方库 解决: 1.检查工程-Target-Build Settings 设置Defines Module的值是否为YES "Defines Module = Y

xcode工程编译错误:missing required architecture i386 解决方法

可能原因一:项目内保存了.framework文件,在复制分发到不同计算机的时候可能会引发该错误 解决方法一:来到Targets->Build Settings->Framework Search Paths,将其内容删除.让xcode不管项目目录下的.framework文件,而是去包含本机的.当然你也可以手动删除它们. 解决方法二:这个是在stack overflow上看到的: I had this same problem, and the solution turned out to be

xcode工程编译错误:error: Couldn’t materialize

错误信息: error: Couldn't materialize: couldn't get the value of variable amount: variable not available error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression. 解决:Release改为Debug

xcode工程编译错误之iOS解决CUICatalog: Invalid asset name supplied问题

[问题分析]: 这个问题其实是老问题,产生原因就是因为在使用的时候 [UIImage imageNamed:]时,图片不存在或者传入的图片名为nil. [解决方法]: 添加一个系统断点,来判断如果图片名字为nil或者@""的时候,来拦截掉.[操作截图] 原文地址:https://www.cnblogs.com/lxlx1798/p/10326627.html