So here is my code: -(void)setMovie:(NSURL *)movieLocal { movie = movieLocal; [self.movie retain]; ... } And i get this error:
I want to declare my property as the following... @property (non开发者_运维问答atomic, retain) NSString *phoneNumber;
I programmatically create an ActivityIndicatorView with UIActivityIndicatorView* cactivity = [[[UIActivityIndicatorView alloc]
I am trying to get the hang of retain / release. I get that they are a matched set. But I don\'t know when I have to retain references.
I\'m learning Objective-C right now and in order to practice I wrote a simple random maze generator for OS X, which works 开发者_如何学Pythonfine. Next I tried to add some more interaction with button
I have started working more with delegate as suggested in another question I made. Now, I havemade a UIViewController called ProfileViewController in which I would like to load the News Feed from Face
I am really new to objc and I am trying to understand as much as possible and get a good routine when it comes to mem management.
This question already has answers here: Closed 11 years ago. Possible Duplicates: NSString retainCount is 2147483647
If a NSDecimalNumberHandler is created using the following: (id)decimalNumberHand开发者_如何学编程lerWithRoundingMode:(NSRoundingMode)roundingMode scale:(short)scale raiseOnExactness:(BOOL)raiseOnExa
In that piece of code, I have both NSLog that says dict has a retain count of 1. As the timer can be triggered in a long time if there are many objects into the array, May I retain dict given into use