Creating Objects
创建对象
There are two main ways to create an object. The first is the one you saw before:
创建对象主要有两种方法。第一种如下:
NSString* myString = [NSString string];
This is the more convenient
automatic style. In this case, you are creating an autoreleased object, which we'll look at in more detail later. In many cases, though, you need to create an object using themanual style:
上面这种是比较方便自动的方式。这种情况下,创建了一个自动释放的对象,接下......
阅读全文