Acquire Basic Programming Skills:1.The Root Class and Objective-C Objects.2.Create Objects.3.Thinkin...
Acquire Basic Programming Skills:
1.The Root Class and Objective-C Objects.
2.Create Objects.
3.Thinking in Terms of Objects.
4.Manage the Object Graph to Avoid Memory Leaks.
5.Manage Object Mutability.
6.Create and Use Value Objects.
7.Create and Use Collections.
8.Verify Object Capabilities at Runtime.
9.Compare Objects.
10.Copy Objects.
NSObject
NSURL *aURL = [[NSURL alloc] initFileURLWithPath:NSTemporaryDirectory() isDir:YES];
NSString *myString = [NSString stringWithFormat:@"Customer:%@",self.record.customerName];
Reference:
Strong(default)
Weak(use __weak or @property(weak)
@property(weak) IBOutlet NSString *theName
Immutable classes:
NSData/NSDate/NSNumber/NSValue
1. A weak reference implies that the referring object does not own the referenced object. The lifetime of an object is determined by how many strong references there are to it. An object is not freed as long as there is a strong reference to it.
学员评论
为之2013-12-11
你感兴趣的课程