/ Published in: Objective C
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
// Give a retained property
@property (retain) UILabel label;
// I believe that the following initializations
// are equivalent and correct.
/////////////
UILabel *tmpLabel = [[UILabel alloc] init];
self.label = tmpLabel;
[tmpLabel release];
/////////////
self.label = [[[UILabel alloc] init] autorelease];
/////////////
label = [[UILabel alloc] init];
Comments
 Subscribe to comments
                    Subscribe to comments
                
                