alloc
Why does implicit initialization of a variable not work consistently on iPhone?
So here is my scenario -- In the header file of a class I do: @interface MyClass : NSObject { NSString *string1;[详细]
2023-04-11 02:32 分类:问答can we override alloc and dealloc in objective C?
I know that this is rarely required to override the alloc or dealloc methods,开发者_如何学运维but if required is it possible in iPhone programming?You can and indeed, you should (if using manual memor[详细]
2023-04-09 01:45 分类:问答In a xcode project, how can you check what is of what properties have an object in a given adress?
I\'m trying to use allocations tool but I don\'t know how to use it, anyways I think this could be very helpful not only in the try of getting rid of a exc_bad_access[详细]
2023-04-01 06:21 分类:问答Problem realeasing allocated objects
Crash occurs at [searchDict release]. If I switch order of the two latest lines it still crash on the latest line (now [searchArray release]). I\'m quite new to Objective C and I guess I haven\'t got[详细]
2023-03-27 17:24 分类:问答Separating alloc and init when initializing NSString
I have a situation where I want to allocate a single NSString object, and assign text to it inside of an if-else block.When I write the code like this:[详细]
2023-03-27 11:47 分类:问答iPhone alloc and release
i am new in ObjC and iPhone. I downloaded an example of data sharing between multiple views. The basic approach is to create an data model object in the base UIApplication and get/set data from/to it[详细]
2023-03-26 07:31 分类:问答How many objects are created if alloc'ed in a loop
I\'m trying to get my mind around one aspect of memory management in the iPhone SDK. If I ran: for (int x = 0; x < 10; x++){[详细]
2023-03-25 03:55 分类:问答How to manage memory with images
Okay, so if I written quite a lot of code without ever allocating any objects, where is the memory going?[详细]
2023-03-22 10:35 分类:问答Memory Allocation Question
I have a string which I am updating constantly (~33 times a second). It is used over and over and over again and is omnipresent in a loop I have going. This is the loop:[详细]
2023-03-21 06:25 分类:问答Why is it not recommended to allocate and initialize with id?
In the following example, what are the possible problems that can开发者_Go百科 occur. id c = [Person alloc];[详细]
2023-03-20 23:15 分类:问答