English 中文(简体)
UIViewController在交易时不发表分辨率(ARC)。
原标题:UIViewController not releasing subviews when dealloc (using ARC)

我似乎像一个 we(不问)问题一样,与伊科斯·科勒先生讨论。 看来,控制者在交易时没有释放其次目。 我将安全监督记录电文放在所有次视处理器和观察控制器中。 观点控制员交易会被叫作,但次调查没有。 然而,如果我接着把这一看法的控制器推向导航站,那么,似乎所有前述情况都已经公布(我获得了奥塞罗登令我知道的国家安全监督记录仪的bu)。 我进行抽查,我没有在呈递的电击控制器(进行推推的器)中单独提及海关观察控制员。

One small (maybe) detail: The custom view controller does receive a block it stores and then executes before popping. However, I did send nil to it and I get the same behavior. Plus, the presenting view controller does dealloc when popped of the stack, so no retain cycle.

此外,我确实试图明确发表对海关观察控制员交易方法的看法。 性行为。

航行控制员能否继续留任? 我的任何其他观点控制者似乎都没有这样做。

我的问题是,这确实是记忆泄露(所有这些次目);尽管泄漏确实是 st,但它仍然泄露。

最佳回答

Ok, this is embarrassing. I did find the problem in another class (called ViewDef) I was inadvertently using as a collection class. It was a quick and dirty way of keeping track of my subviews when I was first figuring out some animations (months ago). ViewDef stored frame/font/color/etc info retrieved from a database, so it was convenient to also store the views when figuring out animations (between orientations). These ViewDefs were being store by my model and passed around, so of course the views were also being retained (and replaced later by another view controller). Anyway, I forgot to insert a warning in my code to fix this later.

故事: 如果你计划做一些事情,至少要记录你的 st,你就不必在互联网上广播。

问题回答

您可以尝试将次视线确定为零。 D. 单载处理法

一项尝试是,确保你们的所有代表都能够参加。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签