Most discussion about memory management of Objective-C is based on classes derived from NSObject. How about the memory management of a struct? Is it similar to standard C++ memory management (using new and delete)? An example struct is shown as follows:
Code:
typedef struct
{
int startPosition;
int endPosition;
int Velocity;
} carInfo;
Last edited: