retaincount
retaincount of ViewController +4 when pushed by NavigationController
I was wondering why the reta开发者_StackOverflow中文版inCount of a viewController is raised by 4 when pushed onto the stack of a Navigationcontroller e.g. from a tableView. What dependencies are creat[详细]
2023-01-22 07:56 分类:问答calling 'subviews' method on a cell's contentView increases retain count
I don\'t know what is going on here but I have the following code in my init method: NSLog(@\"retain count in init before alloc: %d\", [game1CustomEntityInfoControl retainCount]);[详细]
2023-01-22 06:44 分类:问答objective-c release
I have this class in DNS.h @interface DNS : NSObject <NSXMLParserDelegate, NSNetServiceDelegate> {[详细]
2023-01-20 13:24 分类:问答Retain count in objective C return -1
I\'m new to objective C, I have a NSMutableArray with 3 objects in it, then I try to print the retainCount of the arra开发者_Go百科y. Why the final retainCount return -1? Thanks[详细]
2023-01-20 02:38 分类:问答Methods That Call Methods: Basics of Autorelease?
Just when I thought I\'ve understood this topic completely, I\'m back to basics. I have a method that instantiates an autoreleased object, using (for example) stringWithFormat:[详细]
2023-01-18 12:25 分类:问答How many times do I release an allocated or retained object?
I am making an iPhone game. I want to release all objects that have been allocated or retained. In the dealloc function I am releasing all such objects, but then I realized that sometimes I end up rel[详细]
2023-01-16 06:28 分类:问答iPhone - Retain Count - Retain count goes up for no apparent reason
Quick question, hopefully I am just missing something simple. Ok I have one class that holds a pointer to another; MainMenuClass and NormalGameClass. Inside of the MainMenuClass I do the following.[详细]
2023-01-13 23:58 分类:问答NSString and retainCount question
I have a NSString declared in the interface part: @property (nonatomic, retain) NSString *filePath; In viewDidLoad I give this a value and when I am trying to call it from one of my custom methods[详细]
2023-01-11 08:26 分类:问答view based application - viewcontroller retainCount after [window addSubview:viewController.view];
i have an view based application and when i checked if the dealloc method was workin, i saw that doesnt...debug and debug, then using retainCount, i discover that my viewcontroller retaincount gets cr[详细]
2023-01-10 20:00 分类:问答Should I release self.view?
I have a question regarding to self.view in a UIViewController. First, in my app, everything is created programmatically. And normally I create self.view in the loadView method:[详细]
2023-01-09 09:31 分类:问答
加载中,请稍侯......