Monday, December 30, 2013

In Objective-C how to use dynamically allocated arrays?

In Objective-C how to use dynamically allocated arrays?
Reply:
Two ways, has their own memory management. One is to use the class.

objective-C is a superset of the standard C, so how in C dynamically allocated arrays, here is this.
Of course, you can use NSMutableArray.
Reply:
Can you give an example of code
Reply:
1 Release 2 with its own assigned their own class to directly create, after which the system will automatically freed
Reply:
reference to the third floor yukiwang313 reply:
1 Release 2 with its own assigned their own class to directly create, after which the system will automatically freed
< / fieldset>
That way one is C, controlled by the programmer; One is similar to java object-oriented approach, the system control?

No comments:

Post a Comment